int main(){
char a[80] = "Angus Declan R";
char b[80];
char *p,*q;
p = a;
q = b;
while(*p != '\0'){
*q++ = *p++;
}
*q = '\0';
printf("\n p:%s q:%s \n",p,q);
puts(p); //prints the string
puts(q); //doesnt print the string
return 0;
}
为什么字符串没有从 p 复制到 q?尝试打印 q 时,它什么也不打印