So in this blog I would be basically discussing about the Bitwise Operators.
Bitwise Operators are special kind of operators in C which work on the bits. We know that C was basically developed to create the unix operating system and it comprises of best elements of both High-Level Language as well as low level language. So an operator was required to work on the low level that is the bits.
Bitwise operator are basically used in device drivers - such as modem programs, disk file routines, and printer routines.
We can not use bitwise operator in float, double, long double, void or other more complex types.
TYPES OF BITWISE OPERATORS
OPERATOR | ACTION |
---|---|
& | AND |
| | OR |
^ | XOR |
~ | One's complement(NOT) |
>> | Shift right |
<< | Left right |
PART-I :
PART-II :
No comments:
Post a Comment