Domanda di colloquio di Yodle

What is the difference between the stack and the queue in terms of memory?