8.Write a program to perform bitwise XOR on two numbers using the '^' operator.
Bitwise XOR Operator (^):
Bitwise Exclusive OR (XOR) is a binary operation that takes two binary representations of the same length and performs a logical exclusive OR operation on each pair of corresponding bits. If only one of the two bits is 1 then the result in each case is 1, but if both are 0 or both are 1 then the result is 0.
In C the bitwise XOR operator is represented by the symbol ^.
Let us explore the bitwise OR operation on two integers number 5 and 3.
10 = 1010 ( Binary)
6 = 0110 ( Binary)
Bitwise XOR ^ Operation of 10 and 6
1010
^ 0110
________
1100 = 12 (In decimal)