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....
No comments:
Post a Comment