Question #35668

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

Expert's answer

#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!

LATEST TUTORIALS
APPROVED BY CLIENTS