1.

What is the output of this program?
#include <iostream>
#include <string>
using namespace std;
int main ()
{
string s="Manjesh Ojha founded the Interview Mania";
string s2 = s.substr (0, 12);
unsigned pos = s.find("the");
string s3 = s.substr (pos);
cout << s2 << ' ' << s3 << ' n';
return 0;
}

A. Manjesh Ojha founded the Interview Mania
B. Manjesh Ojha
C. Interview Mania
D. founded
E. Manjesh Ojha the Interview Mania
Answer» F.


Discussion

No Comment Found

Related MCQs