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.7.0-9-g940ec1b · 940ec1b · 2026-07-05