As far as I know when you use a left shift bitwise operator in C it\'s guaranteed that the vacant bits will be filled with 0s. However, I\'ve read that the right shift is im
Cast the number to unsigned and then shift. That will force a 0-fill.
unsigned