从下面几个例子来剖析 1) extern int a; int main(int argc, constchar * argv[]){ printf("%d",a); } 编译不会报错,externint a,只是一个声明,并不是定义,既然已经声明变量存在&