Vidyalelo
C++ Programming · Q869

C++ miscellaneous

Programming · C++ Programming · question 869

Q869

What is the use of sort_heap() function in heap?

A.
To sort the elements in the heap into descending order
B.
To sort the elements in the heap into ascending order
Answer
C.
To sort the first half of the heap
D.
To sort the second half of the heap

Answer: Option B

Solution

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