Path: utzoo!mnetor!uunet!husc6!hao!ames!oliveb!pyramid!prls!philabs!pwa-b!mmintl!franka From: franka@mmintl.UUCP (Frank Adams) Newsgroups: comp.lang.c Subject: Re: Autoincrement question Message-ID: <2610@mmintl.UUCP> Date: 8 Dec 87 22:21:11 GMT References: <1507@ogcvax.UUCP> <3333@sigi.Colorado.EDU> <7593@eddie.MIT.EDU> Reply-To: franka@mmintl.UUCP (Frank Adams) Organization: Multimate International, E. Hartford, CT. Lines: 16 In article <7593@eddie.MIT.EDU> jbs@eddie.MIT.EDU (Jeff Siegal) writes: >Summary: Don't use the target of an auto-increment or auto-decrement >operator elsewhere in the same expression. Slightly stronger: don't use the target of an assignment operator elsewhere in the same expression. Auto-increment and auto-decrement operators are assignment operators. (Actually, you can use such results, provided that the assignment and the other use are within different arguments of a comma operator. That is, both "f(i) , i++;" and "i++ , f(i);" are unambiguous. But don't do this unless (a) you know exactly what you are doing, and (b) you really need to.) -- Frank Adams ihnp4!philabs!pwa-b!mmintl!franka Ashton-Tate 52 Oakland Ave North E. Hartford, CT 06108