Home » C++ Programming » Questions and Answers » Question
  1. Which operator is used to compare the elements in heap?
    1. comp
    2. <
    3. Both comp &<
    4. >>
    5. None of these
Correct Option: C

The elements in the heap are compared using operator< (for the first version), or comp (for the second version).



Your comments will be displayed only after manual approval.