Vidyalelo
C++ Programming · Q161

C++ miscellaneous

Programming · C++ Programming · question 161

Q161

What will be the output of the following C++ code? #include #include #include using namespace std; int main(int argc, char const *argv[]) vector v = 1,5,23,90,15,35; make_heap(v.begin(),v.end()); v.push_back(110); push_heap(v.begin(), v.end()); pop_heap(v.begin(), v.end()); v.pop_back(); cout<<v.front();

A.
90
Answer
B.
1
C.
110
D.
23

Answer: Option A

Solution

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