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