how to bit shift in c code example Example: c right bit shift // 5: 0...0101 int a = 5; //shift int a 2 bits int n = (a >> 2);