1. Home
  2. Computer Science MCQs
  3. C Programming
  4. What value does the expression 10 > 5 > 1 produce in C?

Added 30 Nov -0001

What value does the expression 10 > 5 > 1 produce in C?

  1. 1
  2. 2
  3. 3
  4. 0 Correct answer

Correct answer

D. 0

14 views

MCQSEXAM

Explanation

Relational operators are left-associative: 10 > 5 gives 1, and then 1 > 1 gives 0.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More C Programming MCQs

Practise all C Programming MCQs

Similar MCQs