Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site rlvd.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!mcvax!ukc!warwick!rlvd!drg From: drg@rlvd.UUCP (Duncan R. Gibson) Newsgroups: net.lang.c Subject: Re: C programming style Message-ID: <646@rlvd.UUCP> Date: Thu, 18-Jul-85 05:50:22 EDT Article-I.D.: rlvd.646 Posted: Thu Jul 18 05:50:22 1985 Date-Received: Sun, 21-Jul-85 02:44:43 EDT References: <11434@brl-tgr.ARPA> <303@ur-laser.uucp> <11515@brl-tgr.ARPA> Reply-To: drg@rlvd.UUCP (Duncan R. Gibson) Organization: Software Engineering Group, Rutherford Appleton Laboratory Lines: 11 Xpath: warwick ubu Re: i++ and i = i + 1 As an aside, I remember being taught AlgolW as a student, where i := i + 1 and i := 1 + i were equvalent statements, and incremented i. I then moved to PL360 (yuk!) for a while where i := i + 1 inrements i, and i := 1 + i sets i to 2. This caught a lot of students out, especially as the two languages can be made to look similar. At least i++ and ++i are *obvious* if you have read *any* introductory text to C.