Originally Posted by laserlight
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.....
then the compiler calcs..(c+d) then adds the res to b;Code:a=b+c+d;
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