() ignored in some expressions

Jeff Aguilera jeffa at hpmwtd.HP.COM
Fri Apr 13 06:46:34 AEST 1990

> Correct me if I'm wrong, but I thought that if you write it simply as
> "(a + b) + c" then the compiler may still ignore the ().
> But ANSI states: if you write it as "+(a + b) + c" (note the unary plus),
> then the compiler has to evaluate (a+b) first.

No.  The compiler is not allowed to combine subexpressions of (a+b) with
any in c.  The order is still not guaranteed.

More information about the Comp.lang.c mailing list