可能重复: C中的char s []和char*s有什么区别?
为什么是:
char *ptr = "Hello!"
不同于:
char ptr[] = "Hello!"
具体来说,我不明白为什么你可以使用(*ptr)++来改变数组中'H'的值,而不是指针.
谢谢!
c
c ×1