The right shift operator (>>) moves all bits to the right by a specified number of positions. Bits that fall off the right edge are discarded.
Example: . In binary, . Shifting right by 2 positions gives . Shifting right by positions divides the number by (using integer division). Here, .
For positive numbers, new bits on the left are filled with 0. For negative numbers, the behavior depends on the language (arithmetic shift vs logical shift), but you'll typically work with positive numbers in bit manipulation problems.