Are (bool)(i & 1) and i % 2 == 1 same?

前端 未结 0 1646
日久生厌
日久生厌 2021-02-11 20:19

Are (bool)(i & 1) and i % 2 == 1 always same where i is int?

Note: saying always I mean for all platforms (even w

相关标签:
回答
  • 消灭零回复
提交回复
热议问题