what is bitwise operator?

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


Please Help Members By Posting Answers For Below Questions

What is the difference between the local variable and global variable in c?

520


why return type of main is not necessary in linux

1688


Is anything faster than c?

571


What is the purpose of ftell?

589


Describe explain how arrays can be passed to a user defined function

589






i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none

634


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

1614


What is string concatenation in c?

558


How can I manipulate individual bits?

593


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

639


What is a nested loop?

635


What is the difference between volatile and const volatile?

554


How can I sort more data than will fit in memory?

612


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

5451


What are preprocessor directives in c?

624