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