Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Like C, C++ employs short-circuit evaluation of boolean expressions. This means that once the truth or falsehood of an expression has been determined, evaluation of the expression ceases, even if some parts of the expression haven’t yet been examined. For example, in this case,
char *p; ... if ((p != 0) && (strlen(p) > 10)) ...