> For the complete documentation index, see [llms.txt](https://notes.tejpratapsingh.com/_/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.tejpratapsingh.com/_/cpp/memory/memory-introduction.md).

# Memory Introduction

Memory is probably the most important part of any program, memory is allocated, used and destroyed as you program executes.

### Topics to understand here:

1. [Heap and Stack](/_/cpp/memory/heap-and-stack.md)
2. [Copy Constructor](/_/cpp/code/classes/copy-constructor.md)
3. [Pointers](/_/cpp/memory/pointers.md)
4. [Smart Pointers](/_/cpp/memory/pointers/smart-pointers.md)
   1. [Unique Pointer](/_/cpp/memory/pointers/smart-pointers/unique-pointer.md)
   2. [Shared Pointer](/_/cpp/memory/pointers/smart-pointers/shared-pointer.md)
   3. [Weak Pointer](/_/cpp/memory/pointers/smart-pointers/weak-pointer.md)
