Quote Originally Posted by laserlight
The problem, as I see it, would be that you simply cant use the expression (i++/i++) without getting an undefined result.

i dont get wat u mean by an undefined result....wat i am gettin to is that y does my compiler calculate the division in a different way when i directly output it in the printf() func....u see...under normal circumstances....suppose we say.....

Code:
 a=b+c+d;
then the compiler calcs..(c+d) then adds the res to b;
so the compiler goes frm right to left doesnt it??
then y go frm left to right in the printf ()??

i hope i havnt made any mistake in assuming the right to left format of the compiler