Bitwise Operators in C Language
BITWISE OPERATORS
![]() |
bitwise operator |
& OPERATOR
EXAMPLE OF & OPERATOR
Here, we used DOS Base artitecture so we take 16 bit of binary digit that's why we add zero after convert 23 and 56 in to binary as we seen in above example.
OR OPERATOR
EXAMPLE OF OR OPERATOR
^ OPERATOR
EXAMLE OF ^ OPERATOR
Right Shift Operator
Right shift operator shifts all bits towards right by certain number of specified bits. It is denoted by >>.
For Example :--
Left Shift Operator
Left shift operator shifts all bits towards left by certain number of specified bits. It is denoted by <<.
For Example :-
Comments
Post a Comment