#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
char st1[100],st2[100];
clrscr();
printf("Enter first line of text : ");
gets(st1);
printf("Enter second line of text : ");
gets(st2);
strcpy(st1,st2);
printf("\nAfter copy the string :\n");
printf("First line of text : %s\n",st1);
printf("Second line of text : %s",st2);
getch();
}
///////////////////////////////////////////////////////////////////////////
Copy & paste this code in your TC & run, then you will get output.......
If you have any problem please comment below.........