engineering computer science MCQ #2148

What is the output of `printf('%d', 5 ^ 3);`?

engineering computer science MCQ #2148

  1. Question 1

    Q1. What is the output of `printf('%d', 5 ^ 3);`?

    • A) 6
    • B) 8
    • C) 5
    • D) 3

    Answer: 6

    Explanation: Bitwise XOR operation between 5 (101) and 3 (011) results in 6 (110).