Data Types in C++ — a practical guide to C++ data types with clear examples you can reuse in real projects.
C++ Tutorial Series (13/111). Prefer one article? Read the complete C++ tutorial.
Short description
Prefer <cstdint> fixed-width types when sizes must be portable.
Type map
int, char, bool, float, double
unsigned / long variants
std::size_t, std::string
int32_t / int64_t when needed