() ignored in some expressions

Henry Spencer henry at utzoo.uucp
Wed Apr 11 04:18:33 AEST 1990


In article <1990Apr10.061333.29693 at diku.dk> jensting at skinfaxe.diku.dk (Jens Tingleff) writes:
>Ahemm. Am I stupid, or is the result of 1000*(1000 - 999) quite dependant
>on the parenthesis being done properly (assume 16 bit int's..)? ...

You're not stupid, just slightly careless. :-)  You didn't read the original
query carefully enough -- only associative and commutative operators were
covered by the old rule, and subtraction is neither.
-- 
Apollo @ 8yrs: one small step.|     Henry Spencer at U of Toronto Zoology
Space station @ 8yrs:        .| uunet!attcan!utzoo!henry henry at zoo.toronto.edu



More information about the Comp.lang.c mailing list