I'm working on an assignment that requires me to right-shift a 32-bit integer with 0s rather than the most significant bit(which is what C does by default). I'm allowed to use binary operators &, ^, ~, | and logical operators +, ! and =. No if statements, no macros, nothing. Also, any integer that is declared should be less than or equal to 0xFF.
Any help will be appreciated!