Describe a stack data structure.

A stack is a LIFO (Last In First Out) data structure. 
Analogous to a stack of plates, every new data entry is placed (or pushed) onto the top of the stack, and to get the the data below it, you must first remove all the data above it.

MT

Related Computing A Level answers

All answers ▸

What is the difference between compile-time errors and runtime errors?


How can the idea of precondtioning as part of 'Thinking Ahead' benefit a programmer when writing code?


How does a HDD (Hard drive disk) work?


In Python, write a recursive function that returns the first n Fibonacci numbers.