Categories
Uncategorized

Detect overflow in addition

Whats the simples way to check if the sum of two unsigned integers has resulted in an overflow.

(Another from http://www1.cs.columbia.edu/~kns10/interview/)

Leave a Reply