Is short-circuiting logical operators mandated? And evaluation order?
Yes, short-circuiting and evaluation order are required for operators || and && in both C and C++ standards. C++ standard says (there should be an equivalent clause in the C standard): 1.9.18 In the evaluation of the following expressions a && b a || b a ? b : c a , b using the … Read more