extern char *hello 与 extern char hello[]的区别
RT
我知道extern char hello[]是指针常量,不能被直接赋值,除此之外还有其他的区别吗?
[解决办法]
extern char *hello; /* 指针 */
extern char world[]; /* 数组 */
这就是指针和数组的区别。
发布时间: 2013-03-19 17:22:05 作者: rapoo
extern char *hello 与 extern char hello[]的区别
RT
我知道extern char hello[]是指针常量,不能被直接赋值,除此之外还有其他的区别吗?
[解决办法]
extern char *hello; /* 指针 */
extern char world[]; /* 数组 */