In a sense, an undefined result means that the compiler is free to set any 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
So i++/i++ could be 0, 1, or -1 etc regardless of the value of i.
Have you visited the website that Salem linked to?so the compiler goes frm right to left doesnt it??
then y go frm left to right in the printf ()??