engineering computer science MCQ #2143

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

engineering computer science MCQ #2143

  1. Question 1

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

    • A) 2
    • B) 3
    • C) 1
    • D) 0

    Answer: 1

    Explanation: Bitwise AND operation between 3 (11) and 2 (10) results in 2 (10), which is incorrect; correct result is 2.