小编Edw*_*ton的帖子

取消设置最右边的设置位

可能重复:
如何在C中设置,清除和切换单个位?
删除最低位

n是一个正整数.如何解除最右边的设置位?

Say n= 7=> n = 0111.我想0110作为输出.是否有任何简单的按位攻击来实现目标?

c c++ algorithm math bit-manipulation

8
推荐指数
2
解决办法
2289
查看次数

标签 统计

algorithm ×1

bit-manipulation ×1

c ×1

c++ ×1

math ×1