Bitwise Operator

A bitwise operator is an operator that manipulates individual bits. The operators that most people are familiar with, such as the addition operator (+), work with bytes or groups of bytes. Occasionally, however, programmers need to manipulate the bits within a byte. The C programming language supports the following bitwise operators:

  1. >>Shifts bits right
  2. Shifts bits left
  3. &Does an AND compare on two groups of bits
  4. |Does an OR compare on two groups of bits
  5. ^Does an XOR compare on two groups of bits
  6. ~ Complements a group of bits

Not all programming languages support bitwise operators.

Webopedia Staff
Webopedia Staff
Since 1995, more than 100 tech experts and researchers have kept Webopedia’s definitions, articles, and study guides up to date. For more information on current editorial staff, please visit our About page.

Related Articles

Product Manager

A product manager is someone involved in all areas of production, including setting strategies; developing products; and working with relevant project team members, such...

Kintone

Companies looking for a business process management or customer relationship management (CRM) tool may wonder if Kintone is the right choice. In this Kintone...

Special Character

A special character is one that is not considered a number or letter. Symbols, accent marks, and punctuation marks are considered special characters. Similarly,...

HR Recruitment Software

HR recruitment software helps organizations find, recruit and hire the best job candidates.

Product Manager

A product manager is someone involved in all areas of production, including setting...

Kintone

Companies looking for a business process management or customer relationship management (CRM) tool...

Geotargeting

Geotargeting is a method of delivering data or content to users based on...