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 2 of 3.
Dhananjay said:
7 years ago
int a=8,b=2; printf("%d",a>>b); explain.
Mansi said:
1 decade ago
If | is OR operator than what do we call || operator as?
Anji said:
1 decade ago
Why you did't think like this?
1& 0=0.
1& 1=1.
1& 0=0.
1& 1=1.
Amrendra said:
1 decade ago
@Rupa:.
If input is 0, you have to use 1 i.e. 0|1=1.
If input is 0, you have to use 1 i.e. 0|1=1.
Swetha said:
1 decade ago
@Namo
You are right and its easily understandable.
You are right and its easily understandable.
Suni said:
1 decade ago
What is difference between logical and bitwise OR?
Khushboo said:
1 decade ago
What is difference between logical and bitwise OR?
Parul said:
1 decade ago
Nano is absolutely correct. My doubt is clear now.
Kanagaraj said:
1 decade ago
Any one can explain simple masking program?
Rupa said:
1 decade ago
But when 0|0=0 so how to turn on this?
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers