bijay_ps
Broken In
I wrote this code
I am getting 216 as output in windows compiler and 150 in ubuntu compiler,but I anticipated that it should be 120.
So guys plz tell me how this code is working?? and one more thing this ++ oprtr has right to left associativity and * has left to right associativity.
Hey friends I figured it out,how its showing that result in windows (and when I say windows,I actually mean turbo-c compiler). But still can't understand how its showing 150 in ubuntu...... 'coz C lang. is same and concept cannot differ from OS to OS,only syntax may differ a little. So plz help me out here.....

Code:
#include<stdio.h>
void main()
{
int i,j;
i=3;
j=++i*++i*++i;
printf("%d\n",j);
}
So guys plz tell me how this code is working?? and one more thing this ++ oprtr has right to left associativity and * has left to right associativity.
Hey friends I figured it out,how its showing that result in windows (and when I say windows,I actually mean turbo-c compiler). But still can't understand how its showing 150 in ubuntu...... 'coz C lang. is same and concept cannot differ from OS to OS,only syntax may differ a little. So plz help me out here.....

