associativity

  1. bijay_ps

    precedence between pre-increment and multipliction. how it works

    I wrote this code#include<stdio.h> void main() { int i,j; i=3; j=++i*++i*++i; printf("%d\n",j); } 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...
Top Bottom