问题 This question already has answers here : Is short-circuiting logical operators mandated? And evaluation order? (7 answers) Closed last year . When encountering a (bool1 && bool2), does c++ ever attempts to check bool2 if bool1 was found false or does it ignore it the way PHP does? Sorry if it is too basic of a question, but I really could not find a mentioning of that neither in Schildt nor on the Internet. 回答1: Yes, the && operator in C++ uses short-circuit evaluation so that if bool1