What will be the output of the following code?
#include <iostream>
#include <string>
using namespace std;
int main() {
string str1 = "Hello";
string str2 = "World";
string str3 = str1 + " " + str2;
cout << str3;
return 0;
}
HelloWorld
Hello World
Hello
Hello " " World
This question is part of this quiz :
Quiz on C++ Strings