64 642
Assignments Done
99,2%
Successfully Done
In September 2018

Answer to Question #3315 in C++ for mukunda

Question #3315
Write a program to copy one string to another string
Expert's answer
#include <iostream>
#include <string>
using namespace std;

int main()
{
string str1 = "hello", str2 = "world";
str1 = str2;
cout << str1 << endl;

return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions