#include<iostream.h>
#include<conio.h>
#include<string.h>
void main()
{
                char str1[10],str2[10];
                int i,l;
                clrscr();
                cout<<"Enter First String : ";
                cin>>str1;
                cout<<"Enter Second String : ";
                cin>>str2;
                l=strlen(str1);
                for(i=l;i<(l+strlen(str2));i++)
                                {
                                str1[i]=str2[i-l];
                                }
                cout<<"The Value Inside Str1 : "<<str1<<" And Inside Str2 : "<<str2;
                getch();
}

131.PNG

Advertisements