Which bit wise operator is suitable for turning OFF a particular bit in a number? Bitwise AND operator (&), one’s complement operator(~) Example: To unset the 4th bit of byte_data or to turn off a particular bit in a number. Explanation: consider, char byte_data= 0b00010111; byte_data= (byte_data)&(~(1<<4)); EXPLANATION: 1 can be [...]





Leave a Comment
C, Interesting questions in C