In C, what is the value of the bitwise expression 5 ^ 3?
Correct answer C. 6
Explanation
In C, ^ is bitwise XOR, not a power. 5 is 101 and 3 is 011 in binary; XOR gives 110, which is 6.
Answer checked How we write and check questions
Discussion