Bitwise Operations Using the Operators ~, &, |, and ^ - C Reference
C examples for Reference:Language Reference
HOME
C
Reference
Language Reference
Introduction
M
N
~M
M & N
M | N
M ^ N
1
1
0
1
1
0
0
0
1
0
0
0
1
0
0
0
1
1
0
1
1
0
1
1
Previous
Next
Related Tutorials
Conversion Specifications for function printf()
Conversion Specifications for function scanf()
Assignment Operators in C
Bitwise Operators in C
Truth Table Used in Logic