1.

What is the output of this program?
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main ()
{
int num[] = {3, 5, 7, 9, 11};
vector<int> VectorData(num, num + 6);
make_heap (VectorData.begin(),VectorData.end());
cout << VectorData.front() << ' n';
return 0;
}

A. 11
B. 3
C. 5
D. 7
E. 9
Answer» B. 3


Discussion

No Comment Found

Related MCQs