C Programming - Bitwise Operators - Discussion
Discussion Forum : Bitwise Operators - General Questions (Q.No. 3)
3.
Which bitwise operator is suitable for turning on a particular bit in a number?
Discussion:
24 comments Page 3 of 3.
Slave of the eternal said:
1 decade ago
Well said namo.
Deepshikha said:
1 decade ago
Namo is correct.
Namo said:
2 decades ago
"|" this operator is known as OR operator
and
we know that with or operator
1| 0 = 1
1| 1 = 1
that's why here we use or operator
and
we know that with or operator
1| 0 = 1
1| 1 = 1
that's why here we use or operator
Samanth said:
2 decades ago
Can you tellme how?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers