0
In the c++ tutorial's "Queue Management Part 1", why is the queue array put into the heap and not the stack?
2 Respuestas
+ 1
Queue uses new or some sort of dynamic memory allocation to maintain the data structure. Heap Allocation: The memory is allocated during the execution.
0
Hi, thanks for the response! What do you mean by maintain the data structure?