Bitwise OR, Computations, and Examples
Here, we will discuss the '|' operator in detail.
We'll cover the following...
Bitwise OR
A Bitwise OR is a binary operator that takes two-bit patterns of equal length and performs the logical inclusive OR operation on each corresponding bits pair. The result in each position is 0 if both bits are 0. Otherwise, the result is 1.
The Bitwise OR operator does the following:
- It is a binary operator that takes two numbers.
- When we do Bitwise
|
of those two numbers, it considers
Access this course and 1400+ top-rated courses and projects.