#include <stdio.h>
#include <stdlib.h>
int main(int argc, const char *argv[])
{
//strcat
char arr[20]="";
char brr[20]="";
char crr[40]="";
printf("输入arr:");
gets(arr);
printf("输入brr:");
gets(brr);
char *pa = arr;
char *pb = brr;
char *pc = crr;
int c = strlen(pa);
strcpy(pc,pa);
strcpy(pc+c,pb);
printf("拼接后为:");
puts(pc);
return 0;
}