engineering computer science MCQ #2155

What is the output of `int x = 10; printf('%d', x >> 1)`?

engineering computer science MCQ #2155

  1. Question 1

    Q1. What is the output of `int x = 10; printf('%d', x >> 1)`?

    • A) 5
    • B) 20
    • C) 10
    • D) Error

    Answer: 5

    Explanation: Right shift operation divides the number by 2. NET computer science MCQs often test this core concept.