Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!haven!ncifcrf!lhc!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: difference between c++; and ++c; Keywords: pre post increment decrement grammar style Message-ID: <15813@smoke.brl.mil> Date: 12 Apr 91 21:18:37 GMT References: <1991Apr08.161444.10025@cs.ruu.nl> <389@civet.ukc.ac.uk> <3730@inews.intel.com> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 12 In article <3730@inews.intel.com> bhoughto@nevin.intel.com (Blair P. Houghton) writes: >>... it is nice to express what you mean as directly as possible. > i += 1; "Increment i." ++i; is in every way equivalent, including the value that is ignored of the expression in the expression-statement. I know of no skilled C programmer who writes i += 1 under normal circumstances, as ++i is more directly expressive of the notion. This doesn't matter a whole lot, other than that students of the language should try to adopt an idiomatic style that fits into established practice, to improve communication with co-workers.