Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: () ignored in some expressions Message-ID: <1990Apr10.181833.5453@utzoo.uucp> Organization: U of Toronto Zoology References: <48079@lanl.gov> <16414@haddock.ima.isc.com> <1990Apr10.061333.29693@diku.dk> Date: Tue, 10 Apr 90 18:18:33 GMT In article <1990Apr10.061333.29693@diku.dk> jensting@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@zoo.toronto.edu