Copy String To Another String

in Hindi - Copy String To Another String



not yet

Source Code :

RUN#include<iostream.h>
#include <conio.h>
#include <string.h>

int main () {

char str1[20] = "Welcome";
char str2[20] = "Friend";

cout<<"Value of str2 = "<<str2<<endl;

strcpy(str2, str1);
cout<<"Copy str1 to str2 = "<<str2;

return 0;
}