engineering computer science MCQ #2119

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

engineering computer science MCQ #2119

  1. Question 1

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

    • A) 10
    • B) 11
    • C) Compilation Error
    • D) Runtime Error

    Answer: 10

    Explanation: Post-increment operator returns the current value before incrementing. NET computer science MCQs often test this core concept.