3 ms·
>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 equ
by greaterthan3 4y 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 http://port70.net/~nsz/c/c11/n1570.html#6.5.5p6