考虑:
char amessage[] = "now is the time"; char *pmessage = "now is the time";
我从C编程语言第2版中读到,上述两个陈述没有做同样的事情.
我一直认为数组是一种操作指针来存储一些数据的便捷方式,但显然情况并非如此...... C中数组和指针之间的"非平凡"差异是什么?
c arrays pointers
arrays ×1
c ×1
pointers ×1