int main()
{
int a,b,c;
a=b=c=1;
c = ++a || ++b && ++c;
printf("%d %d %d", a,b,c);
}
here the expression is considered from left to right.
but the confusion of mine is:
&& has got higher precedence than that of ||.
so ++b && ++c should be calculated first.
why it so happens that when ++a which is true is found the rest of the expression is not even considered.
i find the output as:
2 1 1
plz. help..