指针,数组问题
不知为什么程序会崩溃,求告知?#include<stdio.h>
#include<string.h>
int main()
{
char *p1,*p2,str[50]="abc";
p2="123";p1="999";
strcpy(str+1,strcat(p1,p2));
puts(str);
}
2017-01-11 17:27
2017-01-11 17:30
2017-01-11 17:41
2017-01-11 17:49
2017-01-11 18:21
学指针纠结了一段时间的错误~字符指针的只存放地址~
闪~

2017-01-11 18:35
2017-01-11 19:29
2017-01-11 19:30