extern

声明用于向程序代表变量的类型和名字。定义也是声明:当定义变量时咱们声明了它的类型和名字。能够经过使用extern关键字声明变量名而不定义它。不定义变量的声明包括对象名、对象类型和对象类型前的关键字extern: extern int i; // declares but does not define i int i; // declares and defines i An extern dec
相关文章
相关标签/搜索