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

前端 未结 0 928
死守一世寂寞
死守一世寂寞 2021-02-11 20:15

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

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

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