static int a

static int a只被本文件可见,外部文件不可见;而int a如果在外部文件作以下声明: extern int a,那么它在声明的文件里也是可见的

详见:http://bbs.csdn.net/topics/60474117

原文地址:https://www.cnblogs.com/seasonsstory/p/3490317.html