From: "Dave Dunfield" <dave04a at dunfield.com>
>I think the functions to be performed are defined,
and only their order
is
undefined.
Thats is the expected result, however since we are performing multiple
modifications
to an Lvalue within one sequence interval, the
behaviour is "undefined"
according to
the C standard - this means that "anything
goes", and there is no
guarantee that it
will be the expected result, or even one of several
expected results
(although this
will be almost always the case).
Sorry to belabor the point, but...
This is the part that I can't find in my C documentation. I get that there
are multiple assignments before the sequence point, whose order is
"unspecified". But can't find anything that says the result should be
"undefined", so I assume it should be one of the values (but which one would
still be "unspecified").
Then again, I am working from the lexical guide, rather than the standards
documents themselves. (Can you cite chapter and verse?)
Vince