Vidyalelo
C++ Programming · Q502

C++ miscellaneous

Programming · C++ Programming · question 502

Q502

Which of the following is correct syntax of making heap from a vector v?

A.
make_heap(v.elements);
B.
make_heap(v);
C.
make_heap(v.end(), v.begin());
D.
make_heap(v.begin(), v.end());
Answer

Answer: Option D

Solution

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