Vidyalelo
C++ Programming · Q457

C++ miscellaneous

Programming · C++ Programming · question 457

Q457

What will be the output of the following C++ code? #include #include #include using namespace std; int main () int myints[] = 2, 4, 6, 8, 10; vector v(myints, myints + 5); make_heap (v.begin(),v.end()); cout << v.front() << ' '; return 0;

A.
10
Answer
B.
20
C.
4
D.
8

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board