News for hackers. Stuff that matters.
Re:Integers in C quiz by greaterthan3 on Sunday September 04, 2022 @06:19PM (#32718279)
>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

There are no comments on this comment yet.