1.

What is the output of this program?
#include <iostream>
#include <string>
using namespace std;
int main ()
{
string s1;
string s2="Manjesh Ojha";
string s3="He founded Interview Mania";
s1.append(s2);
s1.append(s3, 2, 4);
s1.append(s3.begin() + 6, s3.end());
s1.append(5, 0x2E);
cout << s1 << ' n';
return 0;
}

A. Manjesh Ojha
B. He founded Interview Mania
C. Manjesh Ojha founded Interview Mania.....
D. Compilation Error
E. None of these
Answer» D. Compilation Error


Discussion

No Comment Found

Related MCQs