Multiple choice technology programming languages

What is the result of evaluating the expression 14 ^ 23.

  1. 25

  2. 37

  3. 6

  4. 31

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The caret symbol (^) in many programming languages (including C, C++, Java, C#) represents the bitwise XOR operator. 14 in binary is 1110 and 23 is 10111. XORing these: 01110 XOR 10111 = 11001, which equals 25 in decimal. Note: Option C (6) would be the result if this were subtraction.