Saturday, November 27, 2010

The Modulus Operator

In C, the value of (1 % (-2) ) is 1. Prior to C99 it could be 1 or -1, depending on the compiler.

No comments:

Post a Comment