Skip to content

Arrays and Strings

Data needs somewhere to live, and arrays and strings are the most fundamental containers. In this chapter, we first review the underlying mechanics of C-style arrays—understanding why they are so "bare"—and then jump straight to std::array to experience how sweet zero-overhead abstraction can be. The string section similarly transitions from C-style strings to std::string, where you will find that handling text in modern C++ is leagues ahead of C.

Chapter Contents

v0.7.0-9-g940ec1b · 940ec1b · 2026-07-05