Groups
Category
Integer overflow happens when a computed value exceeds the range of its type; in C++ this silently wraps for unsigned and is undefined for signed, so prevention is crucial.
Modular arithmetic is arithmetic with wrap-around at a fixed modulus m, like numbers on a clock.