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