Bitwise Operators in C Language


BITWISE OPERATORS



bitwise operator in c,operator in c
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

Popular posts from this blog

Campus and Interview preparation with Java

Important Program of C language in O level exam january 2019

O LEVEL- IT TOOLS & BUSINESS SYSTEM