fork download
  1. #include <stdio.h>
  2.  
  3. void f()
  4. {
  5. for(int i = 2; i < 10; ++i)
  6. main(i,0);
  7. }
  8.  
  9. int main(int argc, char* argv[])
  10. {
  11. if (argc < 2)
  12. f();
  13. else
  14. {
  15. printf("%d\n",argc);
  16. }
  17. }
  18.  
Success #stdin #stdout 0s 9424KB
stdin
Standard input is empty
stdout
2
3
4
5
6
7
8
9