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

Important Announcements(download all my book free)

O LEVEL- INTERNET TECHNOLOGY & WEB DESIGN

Call by Reference with Pointer in C Language part-4-a