stack and heap memory

https://courses.engr.illinois.edu/cs225/sp2022/resources/stack-heap/

Stack grows downwards (high to low address)

Heap grows upwards (low to high address)

Instruction pointer moves upwards (incremented)

Stack

heap