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

相关文章:

  • 2021-11-03
  • 2022-02-24
  • 2021-12-10
  • 2021-10-24
  • 2021-12-12
  • 2022-12-23
  • 2021-09-17
  • 2021-08-30
猜你喜欢
  • 2021-05-28
  • 2022-03-09
  • 2021-09-04
  • 2021-06-17
  • 2021-06-06
  • 2021-10-11
相关资源
相似解决方案