I've written dozens of computer programs, and have never even come close to having to use this silly operator.
Name:
Anonymous2010-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?