7 Expressions [expr]

7.6 Compound expressions [expr.compound]

7.6.11 Bitwise AND operator [expr.bit.and]

The & operator groups left-to-right.
The operands shall be of integral or unscoped enumeration type.
The usual arithmetic conversions ([expr.arith.conv]) are performed.
Given the coefficients xi and yi of the base-2 representation ([basic.fundamental]) of the converted operands x and y, the coefficient ri of the base-2 representation of the result r is 1 if both xi and yi are 1, and 0 otherwise.
[Note 1: 
The result is the bitwise and function of the operands.
— end note]
Morty Proxy This is a proxified and sanitized view of the page, visit original site.