1.

What is the output of this program?
 #include <iostream>
#include <iterator>
#include <vector>
using namespace std;
int main ()
{
vector<int> Number;
for (int k = 0; k < 100; k++)
Number.push_back(k);
typedef vector<int> :: iterator iter_int;
reverse_iterator<iter_int> rev_iterator;
rev_iterator = Number.rend() - 6;
cout << *rev_iterator << endl;
return 0;
}

A. 100
B. 6
C. 5
D. Compilation Error
E. None of these
Answer» D. Compilation Error


Discussion

No Comment Found

Related MCQs