Skip to content
Code ReadingBit Operators
Predict the Output

Bit Operators

6 = 110, 3 = 011. AND, OR, XOR and a left shift: what is printed?
1print(6 & 3, 6 | 3, 6 ^ 3, 1 << 4)