fork download
  1. #include <stdio.h>
  2.  
  3. typedef void(* dummy_f_type)(void);
  4.  
  5. void foo(dummy_f_type x, int y)
  6. {
  7. printf("%d\n", y);
  8.  
  9. if (y == 0)
  10. return;
  11.  
  12. void (* f) (dummy_f_type, int) = (void (*) (dummy_f_type, int)) x;
  13. f(x, y - 1);
  14. }
  15.  
  16. int main()
  17. {
  18. foo((dummy_f_type)foo, 10);
  19. }
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
10
9
8
7
6
5
4
3
2
1
0