1.

What is the output of this program?
#include <iostream>
#include <deque>
using namespace std;
int main ()
{
unsigned int k;
deque<int< Data;
deque<int> :: iterator Iter;
Data.push_back ( 202 );
Data.push_back ( 303 );
Data.push_back ( 404 );
for (Iter = Data.begin(); Iter != Data.end(); ++Iter)
Data.clear();
cout << ' ' << *Iter;
}

A. 202
B. 303
C. 404
D. Segmentation fault
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs