#include<iostream.h>
#include<conio.h>
#include<string.h>
void main()
{
                char str1[10],str2[10];
                clrscr();
                cout<<"Enter A String : ";
                cin>>str1;
                strcpy(str2,str1);
                cout<<"The Value Inside Str1 = "<<str1<<" And Inside Str2 = "<<str2;
                getch();
}

128.PNG

Advertisements