这个程序运行不了 ..............
#include<stdio.h>void main()
{
char *strl="abcd",*str2="cdef";
char *p1=strl,*p2=str2;
while(*strl) strl++;
while(*strl++=*str2++);
printf("%s\n",p1);
printf("%s\n",p2);
}
如题 在VC++运行不了 ....
程序代码:#include<stdio.h>
void main()
{
char a[81]="abcd";
char *strl=a;
char *str2="cdef";
char *p1=strl,*p2=str2;
while(*strl) strl++;
while(*strl++=*str2++);//开辟的空间不够吧
printf("%s\n",p1);
printf("%s\n",p2);
}
以上,可以在V6上运行出来