12.3 — Lvalue references

In C++, a reference is an alias for an existing object. Once a reference has been defined, any operation on the reference is applied to the object being referenced. This means we can use a reference to read or modify the object being referenced. Although references might seem silly, useless, …

17.10 — C-style strings

In lesson , we introduced C-style arrays, which allow us to define a sequential collection of elements: int testScore[30] {}; // an array of 30 ints, indices 0 through 29 In lesson , we defined a string as a collection of sequential characters (such as “Hello, world!”), and introduced C-style …