In chapter 6 section combining-comparisons: "Comparisons can be combined using the boolean operators && (and) and || (or)."
I think it would be better not to blend the Bitwise Operators (& and |) with the operators for Short-Circuit Evaluation (&& and ||). The Bitwise Operators require both operands to be Boolean values. When using the Short-Circuit operators then the last operand can be any random expression.
In chapter 6 section combining-comparisons: "Comparisons can be combined using the boolean operators && (and) and || (or)."
I think it would be better not to blend the Bitwise Operators (& and |) with the operators for Short-Circuit Evaluation (&& and ||). The Bitwise Operators require both operands to be Boolean values. When using the Short-Circuit operators then the last operand can be any random expression.