Introduction to Stack
Learn how to implement stacks in memory.
We'll cover the following...
We'll cover the following...
Stack
A stack is a simple computational device with two operations:
pushpop
These operations allow us to pile up data to remember it in LIFO (last in first out) manner, and quickly retrieve the last piled data item as shown below:
Stack implementation in memory
The CPU register %RSP (Stack Pointer) points to the ...