Path: utzoo!utgpu!water!watmath!clyde!rutgers!mit-eddie!uw-beaver!tektronix!zeus!tekla!dant
From: dant@tekla.TEK.COM (Dan Tilque;1893;92-789;LP=A;60aC)
Newsgroups: comp.lang.c
Subject: Re: Autoincrement question
Message-ID: <2847@zeus.TEK.COM>
Date: 17 Dec 87 07:32:46 GMT
Sender: news@zeus.TEK.COM
Reply-To: dant@tekla.UUCP (Dan Tilque)
Organization: Church of Christ, Secular Humanist
Lines: 16

John Haugh writes:
>The expression  a += a++ + 5  is still very legal.  

Yes, it is legal in the sense that the compiler won't reject it.  However,
it's also undefined.  That expression is the same as 

	a = a + a++ + 5

Now, when is the ++ done; before or after the a to the right of the = is
evaluated?

The rest of the points you made were good; this was just a bad example.

---
Dan Tilque
dant@tekla.tek.com  or dant@tekla.UUCP