1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
typedef void (*func_p) (void); extern func_p bar1_p (void); extern func_p bar2_p (void); extern func_p bar3_p (void); int main () { func_p f; f = bar1_p (); f (); f = bar2_p (); f (); f = bar3_p (); f (); return 0; }