Answers for "string copy in cpp"

C++
0

string copy in cpp

//use '=' to copy string
string s1={"Hello"};
string s2;
s2=s1;	//now s2 will have a copu s1
Posted by: Guest on March-23-2021

Browse Popular Code Answers by Language