fork(1) download
  1. #include <stdio.h>
  2.  
  3. void pa(int a,int i);
  4.  
  5.  
  6. int main(void) {
  7. pa(6,0);
  8. return 0;
  9. }
  10.  
  11.  
  12. void pa(int a,int i){
  13.  
  14.  
  15. if(i==a){
  16. return;}
  17.  
  18.  
  19.  
  20. printf("*");
  21.  
  22. pa(4,(i+1);
  23.  
  24.  
  25.  
  26. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c: In function ‘pa’:
prog.c:22:15: error: expected ‘)’ before ‘;’ token
     pa(4,(i+1);
               ^
prog.c:26:1: error: expected ‘;’ before ‘}’ token
 }
 ^
stdout
Standard output is empty