1.

Which operator is used to compare the elements in heap?(a) >>(b) comp(c)

Answer»

Correct option is (d) Both comp &<

For explanation: The elements in the heap are compared using operator< (for the FIRST version), or comp (for the second version).



Discussion

No Comment Found

Related InterviewSolutions