2024-04-16 07:30:05 +01:00
|
|
|
---
|
|
|
|
id: 1fig
|
|
|
|
title: Stack_and_heap_memory
|
|
|
|
tags: [memory]
|
|
|
|
created: Tuesday, April 16, 2024
|
|
|
|
---
|
|
|
|
|
|
|
|
# Stack and heap memory
|
|
|
|
|
|
|
|
During runtime programs make use of two types of memory: stack and heap.
|
|
|
|
|
2024-04-16 07:40:04 +01:00
|
|
|
## Stack memory
|
|
|
|
|
|
|
|
Similarly to the stack data structure works on hte basis of LIFO: the last item
|
|
|
|
put on the stack is the first item to be withdrawn.
|
|
|
|
|
2024-04-16 07:30:05 +01:00
|
|
|
## Related notes
|