bitwise xor operation code example
Example 1: bitwise operator
bitwise complement of N = ~N (represented in 2's complement form)
2'complement of ~N= -(~(~N)+1) = -(N+1)
Example 2: ;bitwise xor
#include
int main()
{
int a = 12, b = 25;
printf("Output = %d", a^b);
return 0;
}