Which operator in C is the conditional (ternary) operator?
-
A
&&
-
B
||
-
C
??
-
D
?:
Correct answer
16 views
Explanation
The ?: operator evaluates a condition and returns one of two values.
Reference
Asked in: NTS, PPSC IT, Campus Interviews
Doubts & discussion
Not sure why the answer is D? Ask here and get an explanation.
Ask a doubt about this MCQ