Re: x = 0; x += ++x + x++; x == 4?
Christian Johannes Charbula wrote:
> is this result defined by the standard?
No. The second statement contains the expression in which the rules
are broken. See the Standard, [expr]/4.
> I'm just in a small "fight" with some workmates on this topic. So an
> answer from more involved people could .
Never fight your workmates. It's detrimental to your career.
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
|