Fundamental Types
C++ provides built-in fundamental types for integers, floating-point numbers, characters, and booleans.
const & volatile
CV-qualifiers (const and volatile) modify type behavior. const prevents modification; volatile prevents compiler optimization.
Signedness
Integer types can be signed (negative and positive) or unsigned (only positive). Understanding signedness prevents bugs and overflow issues.
Type deduction
3 items
Value categories
3 items
Conversions
C++ performs automatic (implicit) and manual (explicit) type conversions. Understanding these prevents bugs and data loss.
Alignment
Every type has an alignment: an address it must start on, always a power of two. char can live