Write A Program To Copy One String to Another String Using C++
There are two way to copy one sting into another string in C++ programming language, first using pre-defined library function strcpy() and other is without using any library function.
Example 1:
Using Library Function :
Output :
Enter string s1: Prayag String s2: Prayag
Example 2:
Without using Library Function :
Output :
Enter string s1: Prayag String s2: Prayag