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 the value of uninitialized variable in c?
What is merge sort in c?
What is fflush() function?
Why is extern used in c?
Do you know the difference between exit() and _exit() function in c?
how to make a scientific calculater ?
What is typedef struct in c?
Write a code of a general series where the next element is the sum of last k terms.
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
Explain how can I remove the trailing spaces from a string?
What is time null in c?
What does the c in ctime mean?
write a c program to find the sum of five entered numbers using an array named number
Implement bit Array in C.
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()