Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

What good is modulus (%)?

Name: Anonymous 2010-06-27 14:52

I've written dozens of computer programs, and have never even come close to having to use this silly operator.

Name: Anonymous 2010-06-27 18:26

This may go without saying, but the reason % behaves like a remainder operator instead of a proper modulo operator most of the time is because x86 gives you the remainder for free when you do division.
Does the C standard actually specify the behavior of %, or are there platforms where it does behave properly?

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List