Can you control what a bitwise right shift will fill in C?

Cast the number to unsigned and then shift. That will force a 0-fill.

Leave a Comment