<分区>
Possible Duplicate:
Modifying C string constants?
你能解释一下为什么我在提到的行上遇到访问冲突吗?我想那是我的进程内存,我可以访问和更改它的内容。
#include <stdio.h>
int main()
{
char* list[5]={"An","exam","on","Hall oween","night!!!!"};
char **p;
p=list;
*(*(p+1)+2)='A'; // <==== Access vioalation here
return 0;
}