Article View: comp.os.ms-windows.programmer.misc
Article #2889Re: int / int ?
From: Dik T. Winter
Date: Mon, 30 Nov 1998 00:00
Date: Mon, 30 Nov 1998 00:00
13 lines
1371 bytes
1371 bytes
In article <912408515.26096.1.nnrp-07.9e9809e7@news.demon.co.uk> "Chris Marriott" <chris@NOSPAM.skymap.com> writes: > What I'm asking is, given the expression "a*b/c", is there anything in the > language definition which says that this will be evaluated as: > (a*b)/c > or is the compiler free to evaluate it as: > a*(b/c) > if it wishes to do so? It is only allowed to evaluate it the second way if the result is *not* different. I.e. nearly never. -- dik t. winter, cwi, kruislaan 413, 1098 sj amsterdam, nederland, +31205924131 home: bovenover 215, 1025 jn amsterdam, nederland; http://www.cwi.nl/~dik/
Technical Details
Message-ID:
<F38C0z.D9C@cwi.nl>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<912357376.6545.0.nnrp-03.9e9809e7@news.demon.co.uk> <36618e67.0@isc-newsserver.isc.rit.edu> <912408515.26096.1.nnrp-07.9e9809e7@news.demon.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8d38,7450d421b142666f X-Google-Attributes: gidf8d38,public X-Google-Thread: 1014db,7450d421b142666f X-Google-Attributes: gid1014db,public X-Google-Thread: 105df1,7450d421b142666f X-Google-Attributes: gid105df1,public From: dik@cwi.nl (Dik T. Winter) Subject: Re: int / int ? Date: 1998/11/30 Message-ID: <F38C0z.D9C@cwi.nl> X-Deja-AN: 417042122 Sender: news@cwi.nl (The Daily Dross) References: <912357376.6545.0.nnrp-03.9e9809e7@news.demon.co.uk> <36618e67.0@isc-newsserver.isc.rit.edu> <912408515.26096.1.nnrp-07.9e9809e7@news.demon.co.uk> Organization: CWI, Amsterdam Newsgroups: comp.os.ms-windows.programmer.misc,borland.public.cpp.language,comp.lang.c