Help with the code of data transmission between two arduinos (I2C)

You have to re-assign the calculated value to the variable 'a'.

E.g.

a = a << 1;
a += B000001;

This shows two different ways.

For the second statement, you could also have used

a++;

a++ and a-- are the two statements where you don't have (and should not) re-assign.