C++ Language/Type/MaxValue/Overflow
Appearance
On Win32, the max value that can be stored in a unsigned int
variable is 0xFFFF'FFFF
.
If you further increment that variable, it will "overflow" (wrapping around back to 0x0000'0000
without error or warning).
Additional information about overflow (includes interactive examples)