#include<string.h>
main()
{
char s1[50],s2[50];
printf("enter string 1\n");
gets(s1);
strcpy(s2,s1);
printf("the string 2 is\n");
puts(s2);
}
Note: Need to be arranged in compiler after copied
OutPut:
enter string 1
Hello
the string 2 is
Hello