| Operators |
| |
| Bitwise operators |
| |
| The smallest element in memory on which we are able to operate as yield is a byte; and we operate on it by use of the data type char Bitwise operator is used for manipulation of data at bit level. |
| |
| These operators are used for testing the bits, shifting them right to left. Bitwise operator may not be applied to float or double data type. |
| |
| This is a powerful feature of C to manipulate a bit. The programmer can access and manipulate individual bits within a piece of data. |
| |
| Some of the bitwise operators in C are: |
| |
| Operator |
Meaning |
| & |
Bitwise Logical AND |
| | |
Bitwise Logical OR |
| ^ |
Bitwise Logical XOR |
| << |
Left Shift |
| >> |
Right Shift |
| ~ |
Once Compliment |
|
| |
| |
|
| |
| |