Unset a high-order bit

Started by
2 comments, last by Falcon213 15 years, 10 months ago
Somehow I've gotten through a lot of C programming without an implicit understanding of high- and low-order bits. I know that I can check for a high-order bit using & 0x80, but how would I go about un-setting that? Also, if anyone has a good resource for delving deeper into this it would be appreciated.
Advertisement
Becoming bit wise
Just AND it with all ones except for the bit you want off, which should be zero.
Thank you to both of you, that should help.

This topic is closed to new replies.

Advertisement