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
本文共 268 字,大约阅读时间需要 1 分钟。
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
转载于:https://www.cnblogs.com/KennyRom/p/6426558.html