fork download
  1. #include <stdio.h>
  2. int x;
  3. int mondai2(void){
  4. static int c = 10;
  5. x = c;
  6. c++;
  7. }
  8. int main(void) {
  9. mondai2();
  10. mondai2();
  11. mondai2();
  12. printf("%d\n", x);
  13. for (int i = 103; i < 104; i++){
  14. int x = i;
  15. x = x + 5;
  16. }
  17. printf("%d\n", x);
  18. return 0;
  19. }
  20.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
12
12