Study
C++ · Variables, types and I/O
Static types in C++, sizes of the built-in types, integer overflow, auto, const, and reading input with cin.
- In C++ every variable has a fixed type chosen at compile time.
- Signed integer overflow is undefined behaviour, so pick a type that is wide enough.