If the priority && is greater than the value ||, should this code not evaluate -b && ++ c first, and therefore the output should be 1 2 4 11. But here it seems to be a short circuit to give 1 2 5 10. Please help!
int x;
int a=1,b=5,c=10;
x=a++||--b&&++c;
printf("%d %d %d %d\n",x,a,b,c);
return 0;
source
share