Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!hao!boulder!tramp!swarbric From: swarbric@tramp.Colorado.EDU (SWARBRICK FRANCIS JOHN) Newsgroups: comp.lang.c Subject: Re: Autoincrement question Message-ID: <3333@sigi.Colorado.EDU> Date: Sat, 5-Dec-87 23:49:18 EST Article-I.D.: sigi.3333 Posted: Sat Dec 5 23:49:18 1987 Date-Received: Thu, 10-Dec-87 22:28:19 EST References: <1507@ogcvax.UUCP> Sender: news@sigi.Colorado.EDU Reply-To: swarbric@tramp.Colorado.EDU (SWARBRICK FRANCIS JOHN) Organization: University of Colorado, Boulder Lines: 9 There has been a big argument in the FidoNet C ECHO about this. Someone had stated that i += i++ is ambiguous in C, and is not defined. There is supposedly a section in K&R (I don't have it) that says a[i] = i++ is ambiguous. So I would assume that bar->temp = bar++ is also undefined. (As well as (bar++)->temp = bar) So you should probably use the bar++ on the next line. Frank Swarbrick swarbrick@tramp.Colorado.EDU ...!hao!boulder!tramp!swarbric