Bit Operation

From Kiwi
Jump to: navigation, search

This part shows several ways to solve bit field operation question.


Bit Logic

0 and 0 =0
0 and 1 =0
1 and 0 =0
1 and 1 =1
0 or 0 =0
0 or 1 =1
1 or 0 =1
1 or 1 =1
0 xor 0 =0
0 xor 1 =1
1 xor 0 =1
1 xor 1 =0


Problems