1.

What is the output of this program?
#include <iostream>
#include <string>
using namespace std;
int main ()
{
string s ("Interview Mania is being legend");
string::iterator itr;
s.erase (s.begin()+ 15, s.end()-7);
cout << s << endl;
return 0;
}

A. Interview Mania is being legend
B. Interview Mania legend
C. Interview Mania
D. All of above
E. None of these
Answer» C. Interview Mania


Discussion

No Comment Found

Related MCQs