Explanation for this function's output
问题 I am doing review questions which ask me "What is the output of the following," and I am having some trouble understanding something about this function: int a = 1, b = 1, c = -1; c = --a && b++; printf("%d %d %d", a, b, c); The output is 010. My question is about line 2, c = --a && b++ . How is this line processed, and how does it work/change the values? And if it were c = --a || b++ ? From my understanding I thought the output would be 020. 回答1: The key concept to understanding the result