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

extern char *hello 与 extern char hello[]的差别

2013-03-19 
extern char *hello 与 extern char hello[]的区别RT我知道extern char hello[]是指针常量,不能被直接赋值

extern char *hello 与 extern char hello[]的区别
RT

我知道extern char hello[]是指针常量,不能被直接赋值,除此之外还有其他的区别吗?
[解决办法]


extern char *hello;  /* 指针 */
extern char world[]; /* 数组 */


这就是指针和数组的区别。

热点排行