LSB check programming style

后端 未结 0 1090
被撕碎了的回忆
被撕碎了的回忆 2021-01-01 14:59

Let x be any integer > 0. I have seen many programmers do this:

(x & 1) != 0

Instead of this:

(x & 1) == 1
<         


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