Why the output won't be this in the code? [duplicate]
问题 This question already has answers here : Short circuit behavior of logical expressions in C in this example (1 answer) Increment and logical operators precedence [duplicate] (3 answers) Closed 4 years ago . #include <stdio.h> int main(void) { int i = -3, j = 2, k = 0, m; m = ++i && ++j || ++k; printf("%d %d %d %d\n",i,j,k,m); return 0; } I am trying to learn about associativity and precedence of operators in C. Here, The output comes out to be -2 3 0 1 , but I think the output should be -2 3