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

posted @ 2017-02-21 22:02  KennyRom  阅读(135)  评论(0编辑  收藏  举报