Concept Flow - Left shift and right shift behavior
Start with number
Apply left shift <<
Bits move left, zeros fill right
Result is number * 2^shift_count
Apply right shift >>
Bits move right, fill depends on sign
Result is number / 2^shift_count (floor)
End
Left shift moves bits left, multiplying by powers of two; right shift moves bits right, dividing by powers of two, with fill depending on sign.