C compiler test

Miles Bader Bader at b.psy.cmu.edu
Wed Jul 23 08:57:06 AEST 1986


In the first case (i=i/2.5), it's converting the i to double, dividing by
2.5 and converting the answer back to integer.  In the second case, it's
converting the 2.5 to integer and doing an integer divide.  The first
method seems like the correct one, although less efficient...



More information about the Comp.lang.c mailing list