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