0

In the c++ tutorial's "Queue Management Part 1", why is the queue array put into the heap and not the stack?

2nd Mar 2022, 5:54 AM
Isaiah Braugher
Isaiah Braugher - avatar
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.
2nd Mar 2022, 11:10 AM
István
0
Hi, thanks for the response! What do you mean by maintain the data structure?
2nd Mar 2022, 5:15 PM
Isaiah Braugher
Isaiah Braugher - avatar