fork(1) download
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3.  
  4. void check(int depth) {
  5. printf("\n%d\n",depth);
  6. if (depth == 0) return;
  7. check(depth-1);
  8. }
  9.  
  10. int main() {
  11. printf("h");
  12. check(3);
  13. return 0;
  14. }
Success #stdin #stdout 0s 4388KB
stdin
Standard input is empty
stdout
h
3

2

1

0