Bitwise AND
Syntax
x & yExplanation
Sets each bit to 1 where the corresponding bit in both operands is 1
Truth Table
A
B
A & B
0
0
0
0
1
0
1
0
0
1
1
1
Last updated
Was this helpful?
x & ySets each bit to 1 where the corresponding bit in both operands is 1
A
B
A & B
0
0
0
0
1
0
1
0
0
1
1
1
Last updated
Was this helpful?