Xref: utzoo comp.lang.c:38107 comp.std.c:4648 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!cs.uoregon.edu!ogicse!intelhf!ichips!iwarp.intel.com!inews!nevin!bhoughto From: bhoughto@nevin.intel.com (Blair P. Houghton) Newsgroups: comp.lang.c,comp.std.c Subject: Re: difference between c++; and ++c; Keywords: pre post increment decrement grammar style Message-ID: <3730@inews.intel.com> Date: 9 Apr 91 07:30:57 GMT References: <1991Apr08.161444.10025@cs.ruu.nl> <389@civet.ukc.ac.uk> Sender: news@inews.intel.com Organization: Intel Corp, Chandler, AZ Lines: 15 In article <389@civet.ukc.ac.uk> mtr@ukc.ac.uk (M.T.Russell) writes: >Notionally we have: [...I have no joke here, I just like the proper use of the word "notionally..."] [ :-) and I need a little inews-inclusion-meter fodder :-( ] > i++; "Save the current value of i, increment i then discard > the value just saved" > ++i; "Increment i then discard the resulting value" >Obviously most compilers will generate exactly the same code for >either case, but it is nice to express what you mean as directly as >possible. i += 1; "Increment i." --Blair "Notionally, 'mu.'"