fork download
  1. #include <stdio.h>
  2.  
  3.  
  4. void f1(void) { printf("1\n"); }
  5. void f2(void) { printf("2\n"); }
  6.  
  7. void call(void (*func_xx)(void))
  8. {
  9. func_xx();
  10. }
  11.  
  12.  
  13. int main(void)
  14. {
  15. call(f1);
  16. call(f2);
  17.  
  18. }
  19.  
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
1
2