Q:

WHAT IS THE SYNTAX FOR TERNARY OPERATOR IN C?

0

WHAT IS THE SYNTAX FOR TERNARY OPERATOR IN C?

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now