Shift Operations on C
The C standard doesn't precisely define which type of right shift should be used.
For unsigned data, right shift must be logical.
For signed data, almost all machine\compiler use arithmetic.
1<<2+3<<4 = (1<<(2+3))<<4
The C standard doesn't precisely define which type of right shift should be used.
For unsigned data, right shift must be logical.
For signed data, almost all machine\compiler use arithmetic.
1<<2+3<<4 = (1<<(2+3))<<4