Does either ANSI C or ISO C specify what -5 % 10 should be?

Viewed 2496

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?

2 Answers
Related