CodesandTutorials
Next generation website theme is here (black, neon and white color) - Reduces eye strain and headache problems.
You are here - Home > Programming > C > Basics

Bitwise Operators


Description

These bitwise operators allows you to calculate the result at the bit level of a given integer number or a character value.

Types

Bitwise AND Operator

  • It is represented by '&' operator.
  • To check a particular bit is ON or OFF.
  • To set OFF a particular bit of a given number.

Bitwise OR Operator

  • It is represented by '|' operator.
  • To set ON a particular bit of a number

Bitwise XOR Operator

  • It is represented by '^' operator.
  • To toggle the bit ON and OFF

Tip Box

Operator precedence

Priority Operator
1st &
2nd ^
3rd |

Advertisement





Terms of Use | Privacy Policy | Contact Us | Advertise
CodesandTutorials © 2014 All Rights Reserved