Bitwise operators doubt

sir
if i 5<<6
5 in binary is 00000101
on doing the left shift we have to remove the first 6 digits of binary and then add 6 zeros from the other side that gives me
01000000 which is equal to 64
but using the formula a<<b=a2^b i get 52^6=320 which is the correct answer

sir please guide me where i am wrong.
and sir i still had a small doubt in signed and unsigned i replied to ur answer
please look into that as well

hey Yatin, a number can occupy more than 8 bits(check for 320).
if you use this idea of removing first 6 bits and considering only 8 bits you will wrong answer most of the time.

instead of removing first 6 bits consider it as moving the bits on left side 6 times and adding 6 zeros at the end of your answer.

ok sir got it thank u

Hey Yatin, I am able to solve your problem, please mark this doubt as resolved and give ratings based on your experience.