2009-11-09

Catching Integer Overflows in C

Roker pointed me to an article about Catching Integer Overflows in C by Felix von Leitner. It covers some nasty pitfalls of integer arithmetic in C. My absolute favourite is that abs may return a negative number. Comforting to know that C++ inherited this behaviour....

Posted by Alexander Bernauer | Permanent Link | Categories: C++