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 a far pointer in c?

0 Answers  


What is the relation between # and include<stdio.h>

5 Answers   HCL,


What is the output for the program given below typedef enum grade{GOOD,BAD,WORST,}BAD; main() { BAD g1; g1=1; printf("%d",g1); }

4 Answers   ADITI,


How can I pad a string to a known length?

0 Answers  


Reverse a string word by word??

9 Answers  






How can I direct output to the printer?

0 Answers  


sir i wanted to know how we wap in c to add numbers without using arithmetic operator in which digits are entered by user?

2 Answers  


void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply

0 Answers  


what is reason of your company position's in india no. 1.

0 Answers   Accenture, TCS,


What is the benefit of using const for declaring constants?

0 Answers  


What is sparse file?

1 Answers  


Write a program to show the change in position of a cursor using c

0 Answers  


Categories