Which operator is used to compare the elements in heap?

a) >>
b) comp
c) <
d) Both comp &<

1 thought on “ Which operator is used to compare the elements in heap?”

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

Leave a Comment