Skip to content

Glossary: C++ Basics

auto

A keyword that asks the compiler to work out a variable's type from its initial value. `auto total = 3 * 1600;` makes `total` an `int`.

Where the book teaches it

Related terms

Typeconst