1.

What is the output of this program?
#include <iostream>
#include <vector>
using namespace std;
int main ()
{
unsigned int k;
vector<int> One;
vector<int> Two (3, 50);
vector<int> Three (Two.begin(), Two.end());
vector<int> Four (Three);
int Array[] = {10, 12, 71, 38};
vector<int> Five (Array, Array + sizeof(Array) / sizeof(int) );
for (vector<int> :: iterator it = Five.begin(); it != Five.end(); ++it)
cout << ' ' << *it;
return 0;
}

A. 10 12 71 38
B. 10 12 71
C. 10 12
D. 10
E. None of these
Answer» B. 10 12 71


Discussion

No Comment Found

Related MCQs