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