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

why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above

0 Answers  


String concatenation

2 Answers  


How many types of sorting are there in c?

0 Answers  


Is there any possibility to create customized header file with c programming language?

0 Answers  


write a c program to find the probability of random numbers between 1-1000

0 Answers   ADS,






the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

0 Answers  


what is the first address that gets stored in stack according to a C or C++ compiler???? or what will be the first address that gets stored when we write a C source code????????

2 Answers   Apple,


Why can’t constant values be used to define an array’s initial size?

0 Answers  


Once I have used freopen, how can I get the original stdout (or stdin) back?

0 Answers  


What do you mean by c what are the main characteristics of c language?

0 Answers  


What is main function in c?

0 Answers  


Why can't we initialise member variable of a strucutre

1 Answers  


Categories