Cha*_*lds 3 c
我必须写一个表达式,1如果any bit in the least significant byte of k equals 1
1
any bit in the least significant byte of k equals 1
我不能使用任何逻辑运算符.
掩盖我们使用的最不重要的位
(x & 0xFF);
如果上述情况属实,我如何返回0或1不返回逻辑运算符?
0
ric*_*ici 5
这是一个解决方案,没有什么看起来像模糊的逻辑运算符:
((unsigned char)k + 255) / 256
归档时间:
12 年,3 月 前
查看次数:
2135 次
最近记录: