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.
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.