WHAT IS THE SYNTAX FOR TERNARY OPERATOR IN C?
Ternary operator is same as if else control statement in C.
Syntax : (Condition? true_value: false_value);
Example: (A > 100? 0: 1);
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Ternary operator is same as if else control statement in C.
Syntax : (Condition? true_value: false_value);
Example: (A > 100? 0: 1);
need an explanation for this answer? contact us directly to get an explanation for this answer