What is the output of the program?
#include
int main()
{
string s1=”World”; string s2; s2=”Hello” + s1; cout << s2; return( 0 ); }
A. It prints: HelloWorld
B. It prints: Hello
C. It prints: World
D. Compilation error
What is the output of the program?
#include
int main()
{
string s1=”World”; string s2; s2=”Hello” + s1; cout << s2; return( 0 ); }
A. It prints: HelloWorld
B. It prints: Hello
C. It prints: World
D. Compilation error