I seem to remember that ANSI C didn't specify what value should be returned when either operand of a modulo operator is negative (just that it should be consistent). Did it get specified later, or was it always specified and I am remembering incorrectly?
+1 excellent. This made my answer totally redundant :(
Philip Potter
2010-08-31 13:56:50
@KennyTm +1 On a lighter note have you memorized the standard? :-)
Praveen S
2010-08-31 16:58:33