Xref: utzoo comp.lang.c:38116 comp.std.c:4653 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!decwrl!pa.dec.com!jrdzzz.jrd.dec.com!tkou02.enet.dec.com!jit345!diamond From: diamond@jit345.swstokyo.dec.com (Norman Diamond) Newsgroups: comp.lang.c,comp.std.c Subject: Re: difference between c++; and ++c; Keywords: pre post increment decrement grammar style Message-ID: <1991Apr10.094402.28033@tkou02.enet.dec.com> Date: 10 Apr 91 09:44:02 GMT References: <1991Apr08.161444.10025@cs.ruu.nl> <389@civet.ukc.ac.uk> <3730@inews.intel.com> Sender: usenet@tkou02.enet.dec.com (USENET News System) Reply-To: diamond@jit345.enet@tkou02.enet.dec.com (Norman Diamond) Followup-To: comp.lang.c Organization: Digital Equipment Corporation Japan , Tokyo Lines: 16 In article <3730@inews.intel.com> bhoughto@nevin.intel.com (Blair P. Houghton) writes: >In article <389@civet.ukc.ac.uk> mtr@ukc.ac.uk (M.T.Russell) writes: >> i++; "Save the current value of i, increment i then discard >> the value just saved" >> ++i; "Increment i then discard the resulting value" > > i += 1; "Increment i." Nope; it's i += 1; "Increment i then discard the resulting value" (as opposed to j = (i += 1); "Increment i then use the resulting value") Follow-ups to comp.lang.c. -- Norman Diamond diamond@tkov50.enet.dec.com If this were the company's opinion, I wouldn't be allowed to post it.