Can you control what a bitwise right shift will fill in C? September 17, 2023 by Tarik Cast the number to unsigned and then shift. That will force a 0-fill.