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 RTGS N MINIMUM AMT TO B TRANSFERD N WHAT R THE CHARGES ON MINIMUM AMT N IN WHICH BANK WE CAN DO IT?

1 Answers  


Is the following code legal? struct a { int x; struct a b; }

4 Answers  


for questions 14,15,16,17 use the following alternatives:a.int b.char.c.string.d.float

1 Answers  


Describe the modifier in c?

0 Answers  


what are the advantage and disadvantage of recursion

5 Answers  


What is string in c language?

0 Answers  


What is difference between function overloading and operator overloading?

0 Answers  


code for replace tabs with equivalent number of blanks

0 Answers   Bosch,


While compiling a c program,graphics header files are not including in my program..eg: <graphics.h>,what may be the problem...is there any environment settings exists.

2 Answers  


how can i get output the following... 5 4 3 2 1 4 3 2 1 3 2 1 2 1 1 and 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 plz plz...

3 Answers  


How do you convert strings to numbers in C?

0 Answers  


How to removing white spces in c programming only bu using loops

2 Answers  


Categories