0
605views
What is a Conditional Operator?

Subject : Structured Programming Approach

Title : Fundamental of C Programming

Marks : 3M

1 Answer
0
3views

A ternary operator pair “?:” is available in C to construct conditional expression of the form:

exp1 ? exp2 : exp3;

Here exp1 is evaluated first. If it is true then the expression exp2 is evaluated and becomes the value of the expression. If exp1 is false then exp3 is evaluated and its value

Please log in to add an answer.