Is short-circuiting logical operators mandated? And evaluation order?
问题 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 shouldn\'t depend on these operations being short circuited, for they may not. Could someone please point out where in the standard it\'s said logic ops are always short-circuited? I\'m mostly interested on C++, an answer also for C would be great. I also remember reading (can\'t remember where) that evaluation order isn\'t strictly defined,