Practice mode C Language

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.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.