order-of-evaluation

utzoo!utcsrgv!utcsstat!wagner utzoo!utcsrgv!utcsstat!wagner
Mon Mar 7 02:04:44 AEST 1983


It was pointed out to me that my recent comments about the
expression
something=foo(i++)
were wrong.  I claimed that the language had to increment i before
passing it to foo.  That is nonsense.  I meant to type
something=foo(++i)
in which case (I think) my comments were correct.  Thanks to
dmmartindale from waterloo for pointing out my error.

Michael Wagner, UTCS



More information about the Comp.lang.c mailing list