-
What is the output of this program?
#include <iostream>
#include <string>
using namespace std;
int main ()
{
string name ("Manjesh");
string family ("Ojha");
name += " Interview Mania ";
name += family;
name += '\n';
cout << name;
return 0;
}
-
- Manjesh
- Ojha
- Interview Mania
- Manjesh Ojha Interview Mania
- Manjesh Interview Mania Ojha
Correct Option: E
In this program, We are adding the characters at the end of the current value.