Home »

Which bit wise operator is suitable for turning off a particular bit in a number?

Question ListCategory: cWhich bit wise operator is suitable for turning off a particular bit in a number?
milleranthony7 author asked 8 years ago
1 Answers
jessica537 author answered 8 years ago

The bitwise AND operator, again. In the following code snippet, the bit number 24 is reset to
zero.

some_int = some_int & ~KBit24;

Please login or Register to Submit Answer