• For and such that :

Visual demonstration

The grey arrow is an overflow

Detecting overflow

  • The sum of two unsigned numbers, can be detected as an overflow if (or equivalently, ).

Sources