> For the complete documentation index, see [llms.txt](https://wiki.nushackers.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.nushackers.org/hackerschool/introduction-to-cpp/memory-and-ownership.md).

# Memory & Ownership

So far, we've been using variables without really thinking **where they live** / **who owns them.**

In C++, understanding memory is extremely important as it helps you write

* faster programs
* safer code
* avoid nasty bugs like memory leaks
