Author: 刘晨晖
#include <stdio.h>
#include <string.h>
int main()
{
char s1[30]="hello",s2[]="programs";
// s1[30] 的大小一定要限制,并且要足够大,否则内存溢出,会出现 Segmentation fault
strcat(s1,s2);
printf("%s/n",s1); // 输出 helloprograms
return 0;
}