[net.lang.c] No!!!

augart@h-sc2.UUCP (augart) (05/25/86)

In article <304@apollo.mentor.UUCP> franka@.UUCP (Frank A. Adrian) writes:

>	a[x++] = a[x]->next; or a[x] = a[x++]->next;
>
>I have trouble remembering in what order the increment takes
>place. Is it before or after the assignment (No fair peeking in K&R!)?

This is merely a slightly more complicated version of
the disgusting:

	x = 5;
	x = x++;

In my example, different compilers will leave you with  x == 5 or x == 6. 
In your example, "what order the increment takes place" depends
upon what compiler you have.

Steven Augart
swa@xx.lcs.mit.edu (swa@xx.ARPA)