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 machinecompiler use arithmetic.

1<<2+3<<4 = (1<<(2+3))<<4

原文地址:https://www.cnblogs.com/KennyRom/p/6426558.html