The AND Operator (&)
The AND operator compares 2 bits. If they are both 1, the result is 1.
Bit 1
Bit 2
Bit 1 & Bit 2
0
0
0
0
1
0
1
0
0
1
1
1
Parent topic:
Bitwise Operators
Related reference
Bitwise OR (|)
EXCLUSIVE OR (^)
NOT (~)
Created May 22, 2013. Send feedback on this help topic to Technical Publications:
pubs@sybase.com