C Programming - Bitwise Operators - Discussion

Discussion Forum : Bitwise Operators - General Questions (Q.No. 2)
2.
Which bitwise operator is suitable for turning off a particular bit in a number?
&& operator
& operator
|| operator
! operator
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
41 comments Page 4 of 5.

Sohan lal mits gwalior said:   1 decade ago
Bitwise 'AND' of any bit with zero bit is always zero (off).

Mallikarjun said:   1 decade ago
Bitwise & is used for masking bits i.e 1 can be done 0.

Mouni said:   1 decade ago
Please explain how to convert hexa decimal into binary.

Arjun Prasad said:   1 decade ago
~(1<<"bit position") is the operand

Bari said:   1 decade ago
Please explain about bitwise operator?

Saurav said:   1 decade ago
But! why will && not work?

Ruhi said:   7 years ago
Thanks all for explaining this.
(3)

Bari said:   1 decade ago
How to work bitwise ?

Emanuel said:   9 years ago
I think ^ operator.

Ramya said:   1 decade ago
Thanks sundar.


Post your comments here:

Your comments will be displayed after verification.