300 = 00000001 00101100
endian machine reads in backward direction.
hence b -> 00101100
*++b will be = incrementation of b and then pointing to that value and change that value to 2.
that means after incrementing pointer b by 1, it will point to next 8 bits (i.e. b will point to 00000001)
and *(++b) = 2 will change that value to 2 (i.e. changed value is 00000010)
and hence final value of a = 00000010 00101100
Its decimal equivalent is (22 + 23 + 25 + 29) = 556.
Hence ans is 556