order of evaluation
utzoo!decvax!harpo!npoiv!npois!houxm!houxa!houxi!whuxk!steve
utzoo!decvax!harpo!npoiv!npois!houxm!houxa!houxi!whuxk!steve
Fri Feb 25 16:12:16 AEST 1983
If you check p. 50 of K&R you will find that in the statement
a[i] = i++;
it is undefined whether the value of "i" used to index into "a" is its
value before or after it is incremented. I think this answers your
question: in all cases it is compiler-dependent and not defined by the
language.
Steve Kochan
whuxa!steve
More information about the Comp.lang.c
mailing list