#include <stdio.h> /* 全局变量声明 */ int g = 20; int main (){ /* 局部变量声明 */ int g = 10; printf ("value of g = %d\n", g); return 0; }
value of g = 10