Professional Documents
Culture Documents
x&1=x
x&0=0
If we apply the & operation to the FlagRegister variable along with the following bit image:
00000000000000000000000000001000
(note the "1" at your bit's position) we obtain one of the following bit strings as a result:
int TheMask = 8;
1111111111111111111111111111110111
x|1=1
x|0=x
x ^ 1 = !x
x^0=x