in reply to Bit operation

Yes, the correct way to manipulate bits is:

You do not have to provide leading zeros.