Bit wise Operators in C Language

Spread the love
Bitwise operators in C language
Bitwise Operators are used for operations on Individual bits (please note that it is bits not Bytes one Byte contains 8 bits). C language is capable of bit level operation it is one the major Advantage of C language. C have six bitwise Operators here is the list.

Bitwise Operator
Meaning
&
Bitwise AND
|
Bitwise OR
~
1’s Complement
<<
Left Shift
>>
Right Shift
^
Bitwise XOR

Quick Notes :

  1. Don’t Compare these bitwise operators with Logical operators. Logical Operators and Bitwise operators are Completely different. logical operators operates on Byte level and bitwise operators are operates on bit level.
  2. it is important to differentiate between bitwise operators & and | from the Logical Operators && and || .
  3. Bitwise Operators operates on  Integer data only
  4. Bitwise operators are faster then normal operators so it’s recommended to use bitwise operators if possible
We will discuss each and every Bitwise operators with Examples in Upcoming tutorials.please do subscribe for all updates.

Related Posts :

Venkatesh Macha

Hi Guys, I am Venkatesh Macha. I am a programmer and an Open Source enthusiast, Presently working as a Software Engineer. Apart from that, I love to explore new technologies and things.

You may also like...

Leave a Reply