Hacker News new | ask | show | jobs
by greaterthan3 1384 days ago
>The wording was changed in C11

And here's an exact quote from the C11 standard:

>If the quotient a/b is representable, the expression (a/b)*b + a%b shall equal a; otherwise, the behavior of both a/b and a%b is undefined.

http://port70.net/~nsz/c/c11/n1570.html#6.5.5p6