1~ ==> bitwise NOT
2& ==> bitwise AND
3| ==> bitwise OR
4^ ==> bitwise XOR
5>> ==> bit shift right
6<< ==> bit shift left
1#include <stdio.h>
2int main(void) {
3 unsigned int a = 60; //Equal to: 0011 1100
4 unsigned int b = 13 // Equal to: 0000 1101
5
6 int both = a & b //If both are 0, then its a 0,
7 // if both are 1, then its a 1. //0000 1100
8
9 printf("%d\n", both);
10
11
12}