Query in precedence
View Single Post
I was just running a snippet from this website.
int a=10,b; b=a++ + ++a; printf("%d,%d,%d,%d",b,a++,a,++a);
I expected the answer to be 22, 13,13,13
But when i ran through VS 2005, I got 22,13,14,14.
Am I missing anything??