Thiago P.

Shifting Bits

Written in Programming, General Programming

← back to the notes


Shifting Bits

EXAMPLE - Right Shift

10010 >> 3

  1. Add 3 buts to the right
    000 10010
  2. Remove 3 buts from the left
    000 10
  3. Result
    The binary number 18 has become 2