Programming with C

⌘K
  1. Home
  2. Docs
  3. Programming with C
  4. Basics of C Programming
  5. Expressions
  6. Bitwise operators

Bitwise operators

Bitwise operators operate on the individual bits of the operand

  • Bitwise operators can be applied only on char, int, long, short,signed and unsigned
  •  Left shift by n bits is equivalent to multiplication by 2^n
  • Right shift by n bits is equivalent to division by 2^n

The list of bitwise operators are given as,

The truth table are given as

AND Operator

OR Operator

NOT Operator

XOR Operator

Operands

Views: 0

How can we help?

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments