Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/3/84 (WLS Mods); site astrovax.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!mhuxj!houxm!ihnp4!astrovax!rhl
From: rhl@astrovax.UUCP (Robert the Good)
Newsgroups: net.lang.c
Subject: op= operators
Message-ID: <460@astrovax.UUCP>
Date: Tue, 2-Oct-84 18:22:51 EDT
Article-I.D.: astrovax.460
Posted: Tue Oct  2 18:22:51 1984
Date-Received: Wed, 3-Oct-84 23:59:14 EDT
Distribution: net
Organization: Princeton Univ. Astrophysics
Lines: 12

I am not sure how K&R specify that
	*ptr++ += 2;
should be evaluated. Page 191 says only that the behaviour of E1 op= E2
is the same as E1 = E1 op E2, but does that mean in this case
	*ptr++ += *ptr++ + 2;
	*ptr += *ptr++ + 2;
or
	*ptr++ += *ptr + 2; ? (and what does the first form mean?)

For out 4.2 bsd compiler, the last form is used, with the incrementation of
the pointer after the addition of 2. Is this guaranteed by the standard?
			Robert