fork download
  1. void hoge(int n){
  2. static int num = 3;
  3. num += n;
  4. for(int i=0;i<num;i++)
  5. printf("foo bar\n"); // ★
  6. }
  7. int main(void){
  8. hoge(2);
  9. hoge(1);
  10. }
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
foo bar
foo bar
foo bar
foo bar
foo bar
foo bar
foo bar
foo bar
foo bar
foo bar
foo bar