求解char *p="hello world!**********"的问题
为什么运行到strcpy()就出错了呢?*p所指向的内容是不可更改的吗?
#include<stdio.h>
#include<string.h>
int main()
{
char *p="hello world!**********";
strcpy(p+12,"abcd");
printf("%s\n",p);
return 0;
}
2013-05-25 17:00
2013-05-26 10:23
2013-05-26 14:05
2013-05-27 11:22
2013-05-27 12:22
2013-05-28 12:30
2013-05-28 22:25