In maxHeapify, why is it necessary to check that the left and right indices are ≤ heap->size after calculating the index of the left and right children?
For this question a suggested response was to check the index sizes against heap->size to determine if the left child or right child does not exist.