#include
#include
void strcat1(char *s, char *t);
int main()
{
char a[] = "bbbbbbbbbb";
char b[] = "1111111111a B";
strcat1(a,b);
printf("%s", a);
}
void strcat1(char *s, char *t)
{
while(*s != '\0')
s++;
while(*t != '\0'){
*s = *t;
s++;
t++;
}
}
为什么我改里面a[]和b[]的值输入出会不一样呢?就这个代码运行会多出个尾巴 11111a B