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 3 of 5.

Heena said:   1 decade ago
Because && is a logical operator not a bitwise (bitwise is a operator that takes single bit at a time).

Sudha said:   1 decade ago
And operator follow a multiple mechanism. So Zero the position will be off, the OR operator addition mechanism.

Apshana said:   1 decade ago
Why && will not be answer? And tell me what is the difference between & and &&?

Kumar said:   1 decade ago
Could anyone give an explanation in brief with example the above examples could not be understood

Anuradha Sharma said:   1 decade ago
If we take any bit AND (&) with 0 will give a zero. (i.e) Will turn that particular bit OFF.

Gafoor said:   8 years ago
how to work & operator in the program?

Can anyone explain with an example, please?
(2)

Ranjana said:   1 decade ago
Any bit AND(&) with 0 will give a zero .i.e. will turn that particular bit OFF.

Ravi(BIT Mesra CSE_2k7) said:   1 decade ago
Any bit AND(&) with 0 will give a zero .i.e. will turn that particular bit OFF.
(1)

Nkandu said:   10 years ago
I am new to c programming I don't understand it can someone please help me.

Deepanwita said:   1 decade ago
Bitwise operator is more easily been applied than the logical operator.


Post your comments here:

Your comments will be displayed after verification.