How do I use a mask to set bit #1 to 0 in 8-bit binary?

后端 未结 0 556
没有蜡笔的小新
没有蜡笔的小新 2021-01-27 05:39

I want to set bit #1 equal to 0 (aka "clearing" it). Which mask would I use?

Would 01000000 be correct when used with the AND operator?

or:

Would

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