Input
Output
#include <stdio.h> #include <string.h> void main () { char str1[30] = "Welcome to"; char str2[30] = "Onlinetpoint"; int str3; /* Copy the string str2 to str1 */ strcpy( str1, str2); printf("Copy the string str2 to str1: %s\n", str1 ); }