The bitwise operator shifts the expression by several digits. So in your example, you have 65, which ist binary 0100 0001 shiftet 1 position to the right, so you got 0010 0000, which is 32 decimal.
Another example: 48 → 3 = 6
48 decimal code 0011 0000 binary shift 3 on the right - 0000 0110, which is 6 decimal.
For your second example, I cannot help you - I cannot understand why I would shift the expression to 0 positions, but maybe you will learn about debugging?
source
share