
14 Expressions
14.10 Logical operators
14.10.3 Boolean logical operators
Paragraph 11 The predefined boolean logical operators are: bool operator &(bool x, bool y); bool operator |(bool x, bool y); bool operator ^(bool x, bool y);Paragraph 21 The result of x & y is true if both x and y are true. 2 Otherwise, the result is false. Paragraph 31 The result of x | y is true if either x or y is true. 2 Otherwise, the result is false. Paragraph 41 The result of x ^ y is true if x is true and y is false, or x is false and y is true. 2 Otherwise, the result is false. 3 When the operands are of type bool, the ^ operator computes the same result as the != operator.
| |
| Jagger Software Ltd | |
| Company # 4070126 | |
| VAT # 762 5213 42 |