In a logical right shift a >> n, bits in a are shifted to the right (equivalent to dividing by ). Bits to the left that are now empty (original bits haved moved out) are filled with zeros.

Shift type in C

In C, right shifts applied to unsigned integer types are logical right shifts.