“将字符串a,b连接起来”,但并没有看到字符串的连接
#include<stdio.h>
main() {
char str1[] = "you are good ";
char str2[30];
char* p1, * p2;
p1 = str1;
p2 = str2;
while (*p1 != '\0') {
*p2 = *p1;
p1++;
p2++;
}
*p2 ='\0';
puts(str1);
}