Skip to content
doubtly

1 answer

Best answer

Storing data on the heap is slower than it would take when using the stack. However, the main advantage of using the heap is its flexibility. That’s because memory in this structure can be allocated and remove in any particular order. Slowness in the heap can be compensated if an algorithm was well designed and implemented.
Coder B. · 14 May 2022 Report
Was this answer helpful?

Your answer

Log in or create a free account to answer this question.