Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site lsuc.UUCP Path: utzoo!utcs!lsuc!dave From: dave@lsuc.UUCP (David Sherman) Newsgroups: net.lang.c Subject: Re: c programming style - READ THIS Message-ID: <734@lsuc.UUCP> Date: Wed, 24-Jul-85 08:59:31 EDT Article-I.D.: lsuc.734 Posted: Wed Jul 24 08:59:31 1985 Date-Received: Wed, 24-Jul-85 10:24:54 EDT References: <11570@brl-tgr.ARPA> <935@teddy.UUCP> <1286@uwmacc.UUCP> <2439@sun.uucp> Reply-To: dave@lsuc.UUCP (David Sherman) Organization: Law Society of Upper Canada, Toronto Lines: 11 Summary: a++ != a+=1 if a is float In article <2439@sun.uucp> guy@sun.uucp (Guy Harris) writes: || 2) "++a" and "a += 1" are completely equivalent expressions. Well, almost. On at least some systems, "a++" won't work if a is float, while "a += 1" will add 1.0 to a. Dave Sherman The Law Society of Upper Canada Toronto -- { ihnp4!utzoo pesnta utcs hcr decvax!utcsri } !lsuc!dave