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

前端 未结 0 1636
暗喜
暗喜 2021-02-12 03:35

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

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

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