1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <stdio.h> void hello(const char *name) { printf("Hello, %s\n", name); } int main() { void (*f) (const char*); f = &hello; (*f)("alex"); return 0; }