0
605views
What is a Conditional Operator?
written 5.4 years ago by | • modified 2.3 years ago |
Subject : Structured Programming Approach
Title : Fundamental of C Programming
Marks : 3M
ADD COMMENT
EDIT
1 Answer
written 5.4 years ago by | • modified 2.3 years ago |
Subject : Structured Programming Approach
Title : Fundamental of C Programming
Marks : 3M
written 5.4 years ago by |
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