What is the benefits of the heap over a stack?

Total Post:2

Points:10

 49  View(s)
Ratings:
Rate this:
  1. What is the benefits of the heap over a stack?

    The advantage of the heap over a stack -

    Where heap is more flexible than the stack. It’s because memory space for the heap can be dynamically allocated and de-allocated as needed. But, the memory of the heap can at times be slower when compared to that stack.

    • The stack is a linear data structure and Heap is a hierarchical data structure.
    • The Stack is High-speed access and Heap is Slower compared to stack.

      Modified On Sep-11-2019 01:09:34 AM

Answer