What heap operation does the following function implement?bool heapOperation (HEAP* heap, void* dataPtr){ if (heap->size == 0) { heap->size = 1; heap->last = 0; heap->heapAry[heap->last] = dataPtr; return true; } if (heap->last == heap->maxSize - 1) return false; ++(heap->last); ++(heap->size); heap->heapAry[heap->last] = dataPtr; _reheapUp (heap, heap->last); return true;}
A. create heap
B. insert heap
C. reheap up
D. reheap down
Answer: B
You might also like to view...
A ____________ is a variable that is declared inside a class but not inside of any method.
a. named constant b. field c. namespace d. property
Case-Based Critical Thinking QuestionsCase 12-1Ethan is teaching his younger brother James the basics of Microsoft Excel. Please answer the following questions. Ethan then shows James how to select a(n) _____, which is a series of cells.
A. order B. range C. sequence D. group
If a process that reads from a pipe does not close the writing end
A. that process will receive two copies of all data B. that process will never see end of file on the pipe
As you work on a Web site, it is very common to accumulate files that are never used on any page in the site.
Answer the following statement true (T) or false (F)