On 21 Mar 2007 11:37:11 -0700, ranjan kumar ojha
<[EMAIL PROTECTED]> wrote:

>      i += i++ + ++i;

Undefined bahaviour - you're modifying i more than once between
sequence points.

There is little point speculating why a certain compiler comes up with
a particular answer, and any answer a compiler outputs is technically
'correct' because the code is wrong.

See http://c-faq.com/expr/evalorder2.html for a differently worded explanation.

-- 
PJH
Aio, quantitas magna frumentorum est

Reply via email to