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

1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321

0 Answers  


a=5 a=a++/++a

14 Answers   Bhel,


What the advantages of using Unions?

0 Answers   TISL,


How can I prevent other programmers from violating encapsulation by seeing the private parts of my class?

1 Answers  


What is the purpose of & in scanf?

0 Answers  


What is function prototype in c language?

0 Answers  


What are pointers?

0 Answers   Accenture, Tavant Technologies, Zensar,


pick out the odd one out of the following a.malloc() b.calloc() c.free() d.realloc()

2 Answers   TCS, ZenQ,


why i join syntel?

23 Answers   ABC, Syntel, TCS,


How to print %d in output

6 Answers   Wipro,


In scanf h is used for

4 Answers   BFL,


why we wont use '&' sing in aceesing the string using scanf

0 Answers   HCL,


Categories