1. Home
  2. Computer Science MCQs
  3. C Programming
  4. Which operator in C is the conditional (ternary) operator?

Added 30 Nov -0001

Which operator in C is the conditional (ternary) operator?

  1. &&
  2. ||
  3. ??
  4. ?: Correct answer

Correct answer

D. ?:

16 views

MCQSEXAM

Explanation

The ?: operator evaluates a condition and returns one of two values.

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