#include<stdio.h> #define N 10 void strCat(char *p,char *q) { while(*p!='\0') { p++; } while(*q!='\0'){ *p=*q; p++; q++; } *p='\0'; } int main() { char p[20],q[20]; gets(p); gets(q); strCat(p,q); puts(p); return 0; }