I am revising some of my learning resources and I have came across 2 examples that are somehow tricky for me.
1) The result of bitwise shift for an int value 0x80000000>>8 is 0x800000. How to make 8 shifts right when number of digits after 0x is equal to '8'?
2) The result of bitwise shift for an int value 0xff00<<8 is 0xff0000. How to make a proper bitwise 8 shifts left when number of digits after 0x is only equal to 6?