Skip to content

Pointers and References

When it comes to the tricky parts of C++, pointers definitely rank near the top—but honestly, once we understand the difference between an "address" and a "value," pointers aren't that scary. In this chapter, we'll cover pointers from the ground up, including pointer arithmetic and their close relationship with arrays. Then we'll introduce references as a safer "alias" mechanism. Finally, we'll preview the concept of smart pointers, setting the expectation that "modern C++ doesn't need raw pointers."

Chapter Contents

v0.10.0-6-gbcee94e · bcee94e · 2026-08-20