Answer Posted / 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 View All Answers
What is meant by preprocessor in c?
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
What is the advantage of using #define to declare a constant?
What is variables in c?
how can f be used for both float and double arguments in printf? Are not they different types?
What are the two forms of #include directive?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
When do we get logical errors?
Why is a semicolon (;) put at the end of every program statement?
Is it better to bitshift a value than to multiply by 2?
How many identifiers are there in c?
How do you define structure?
What are the advantages of using linked list for tree construction?
Explain what math functions are available for integers? For floating point?
program for reversing a selected line word by word when multiple lines are given without using strrev