Article View: comp.sys.amiga.tech
Article #2826C expression evaluation
From: Bruce Dawson
Date: Wed, 17 Jan 1990 22:45
Date: Wed, 17 Jan 1990 22:45
10 lines
748 bytes
748 bytes
Another C expression which is not clearly defined is this line of code for
reading a word from a file:
word = getc() * 256 + getc();
There is no guarantee on which getc() it will evaluate first, and since
getc() has side effects (ie; incrementing the file pointer)...
.Bruce Dawson, not much of a signature.
Technical Details
Message-ID:
<961@mindlink.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!think!snorkelwacker!usc!ucsd!ucbvax!van-bc!rsoft!mindlink!a464Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!zaphod.mps.ohio-state.edu!think!snorkelwacker!usc!ucsd!ucbvax!van-bc!rsoft!mindlink!a464 From: a464@mindlink.UUCP (Bruce Dawson) Newsgroups: comp.sys.amiga.tech Subject: C expression evaluation Message-ID: <961@mindlink.UUCP> Date: 17 Jan 90 22:45:03 GMT Organization: MIND LINK! - British Columbia, Canada Lines: 10