标签:
实例代码如下:
1 #include<stdio.h> 2 int global_value=9; 3 void change(void) 4 { 5 global_value=8; 6 } 7 void main() 8 { 9 printf("before: global_value=%d",global_value ); 10 printf("\n"); 11 change(); 12 printf("after: global_value=%d",global_value); 13 14 }
运行结果:
before: global_value=9
after: global_value=8
Process returned 23 (0x17) execution time : 0.480 s
Press any key to continue.
标签:
原文地址:http://www.cnblogs.com/coat/p/4840534.html