What is Bitwise Operator and how it works?



What is Bitwise Operator and how it works?..

Answer / vignesh1988i

bitwise operator is nothing but do logical manipulations in bits (lower format).

it needs 2 operands.
for eg : 7 & 2 &- bitwise AND

0000 0000 0000 0000 0111
0000 0000 0000 0000 0010
-------------------------
0000 0000 0000 0000 0010

this performs the operation in BIT level , so only C is called as middle level language and typed to be a strong ones......

| - bitwise OR
^ - bitwise EX-OR
~ - one's complement operator.


thank you

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More C Interview Questions

What is operator precedence?

0 Answers  


Should I learn data structures in c or python?

0 Answers  


In which mode we open the file for read,write and append also in c ? a)W b)w+ c)r+ d)a

2 Answers   BitWise,


What does c mean in basketball?

0 Answers  


What is the difference between typedef and #define?

0 Answers  






What is the difference between array and linked list in c?

0 Answers  


write a program fibonacci series and palindrome program in c

0 Answers   Aditi Placement Service,


the format specified for hexa decimal is a.%d b.%o c.%x d.%u

7 Answers   TCS,


What will be the output of following program #include main() { int x,y = 10; x = y * NULL; printf("%d",x); }

1 Answers  


x=y=z=1 z=++x||++y&&++z Printf("%%%d";xyz) what is the values of x,y and z?????

3 Answers  


Explain what are compound statements?

0 Answers  


What is extern variable in c with example?

0 Answers  


Categories