Does the ANSI standard mandate the logical operators to be short-circuited, in either C or C++?
I\'m confused for I recall the K&R book saying your code
If you trust Wikipedia:
[&& and ||] are semantically distinct from the bit-wise operators & and | because they will never evaluate the right operand if the result can be determined from the left alone
&&
||
C (programming language)