No!!! (was: Re: YANO (Yet Another New Operator))
augart
augart at h-sc2.UUCP
Sun May 25 15:15:17 AEST 1986
In article <304 at apollo.mentor.UUCP> franka at .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 at xx.lcs.mit.edu (swa at xx.ARPA)
More information about the Comp.lang.c
mailing list