i really need help with bitwise calculation. plz help me , our teacher asked to find the answer to a simple calculation . (bitwise) 4<<5 , 3>>3 . how do we calculate this without the use of a computer.
Edit 1:
Please also mention how to perform 3 & 4 and 3|3
a << b = a · 2b
a >> b = a / 2b = a · 2-b (dropping any decimals)
So to calculate 4 << 5, you need to double 4 five times: 4 · 25 = 4 · 32 = 128. Similarly for 3 >> 3.