what is bitwise operator?



what is bitwise operator?..

Answer / harish

An operator that manipulates individual bits. The operators that we are are familiar with, such as the addition operator (+),multiplication (*),division (/) etc ... work with bytes or groups of bytes. Occasionally, however, programmers need to manipulate the bits within a byte. The C programming language supports the following bitwise operators:
>> Shifts bits right
<< Shifts bits left
& Does an AND compare on two groups of bits
| Does an OR compare on two groups of bits
^ Does an XOR compare on two groups of bits
~ Complements a group of bits
and lots more.....

Is This Answer Correct ?    5 Yes 1 No

Post New Answer

More C Interview Questions

I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.

0 Answers  


What is array within structure?

0 Answers  


Can we change the value of static variable in c?

0 Answers  


Write a program which has the following seven functions. The functions should be: • main() this calls the other 6 functions • fget_long() a function which returns a long data type from a file • fget_short() a function which returns a short integer variable from a file • fget_float() a function which returns a floating point variable from a file • fprt_long() a function which prints its single, long argument into a file • fprt_short() a function which prints its single, short argument into a file • fprt_float() a function which prints its single, floating point argument into a file. You should use fscanf() to get the values of the variables from the input (the file) and fprintf() to print the values to the other file. Pay attention to using the correct format for each of the data types.

0 Answers  


What is 'makefile' in C langauage? How it be useful? How to write a makefile to a particular program?

2 Answers  






What is #include stdio h and #include conio h?

0 Answers  


why we use pointer in c

7 Answers   HCL, TCS,


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

0 Answers   Ignou,


which operator is known as dummy operator in c?

2 Answers   Wipro,


How to set file pointer to beginning c?

0 Answers  


Write a program to reverse a linked list in c.

0 Answers   DELL, HAL,


What are identifiers c?

0 Answers  


Categories