Write a program using strcpy char array in c with example. Using this program we can copy the value of the variable in the c program which is stored in the variable. strcpy() is a C/C++ standard library function for copying one string to another. It can be found in the string.h header file in C and the cstring header file in C++.
char s1, s2;