首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C语言 >

extern char hello[];是嘛意义阿

2014-01-12 
extern char hello[];是嘛意思阿 ?extern char hello[];是嘛意思阿 ?[]里面可以有维数不 ?[解决办法]可以

extern char hello[];是嘛意思阿 ?
extern char hello[];是嘛意思阿 ?
[]里面可以有维数不 ?

[解决办法]
可以不可以 试试就知道了
[解决办法]
表示hello是个外部符号,他的定义在其他的编译单元中
可以有,但没有意义。
[解决办法]
就是在另外一个文件里定义了char hello[xxxx]; 定义那里必须明确数组的大小.
这里只是声明, 说明hello是一个char类型的数组, 声明时不必说明大小.

热点排行