Answer to Question #3314 in C++ for mukunda

Question #3314
Write a program to concatenate two strings
1
Expert's answer
2011-07-07T10:18:06-0400
#include <iostream>
#include <string>
using namespace std;

int main()
{
string str1 = "hello", str2 = "world";
string str3 = str1 + str2;
cout << str3 << 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 the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS