Question #35668

what will the following code output?
string s1 = "5";
string s2 = "3";
string s3 = s1 + s2;
cout << s3 << endl;
1

Expert's answer

2013-10-02T12:13:12-0400
#include<iostream>
#include<string>
using namespace std;
int main() {
string s1 = "5";
string s2 = "3";
string s3 = s1 + s2;
cout << s3 << endl;
system("pause");
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!
LATEST TUTORIALS
APPROVED BY CLIENTS