C Program for MERGE TWO STRINGS
main()
{
char a[100],b[100];
int i=0,j,k=0;
clrscr();
printf("ENTER THE FIRST STRING: ");
gets(a);
printf("ENTER THE SECOND STRING: ");
gets(b);
for(i=0;a[i]!='\0';i++);
for(j=0;b[j]!='\0';j++,i++)
a[i]=b[j];
a[i]='\0';
printf("\n%s",a);
getch();
}
OUTPUT :
ENTER THE 1 STRING: KAMLESH
ENTER THE 2 STRING: MENGAR
KAMLESH MENGAR