v behaviorurldefaultvmlo behaviorurldefaultvmlw


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

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: v behaviorurldefaultvmlo behaviorurldefaultvmlw
Reference No:- TGS0159305

Expected delivery within 24 Hours