This program is based off of the recent topics discussed in our OOP344 class about bits and binary operators. I used the bits function made by our teacher last class. This program asks the user for a hexadecimal integer and gives the option to left shift, right shift, reverse it, and also compare it with another hexadecimal integer, using the &, | and ^ operators. It also displays the bits in sets of fours.
Since there is a difference with signed integers when it is right shifted, I put a signed version of the program that can be used by commenting out the unsigned #define version at the top of the program.
I posted it in a public repository on GitHub: