Data Structures I 📚
Agenda
- What is Stack Memory?
- What is Heap Memory?
- Stack vs. Heap
- Intro to Pointers
- What are Dangling Pointers?
- Intro to Struct
- Intro to Classes
- What is Overloading?
- Dynamic Arrays
- Templates
- Vector Implementation
- Linked List Implementation
1. What is Stack Memory? ðŸ§
- The stack is a reserved region of memory that is automatically allocated by the program at runtime.
- It follows the LIFO (Last-In, First-Out) principle.
- Stores variables and function call frames.
- When a function completes, its call frame is removed, and memory is freed.