1.

What is the output of this program?
#include <iostream>
#include <string>
using namespace std;
int main ()
{
string s ("InterviewMania");
string::reverse_iterator Rev;
for (Rev = s.rbegin(); Rev < s.rend(); Rev++ )
cout << *Rev;
return 0;
}

A. InterviewMania
B. 14
C. ainaMweivretnI
D. Compilation Error
E. None of these
Answer» D. Compilation Error


Discussion

No Comment Found

Related MCQs