Q:

WHAT IS THE SYNTAX FOR TERNARY OPERATOR IN C?

belongs to collection: C INTERVIEW QUESTIONS AND ANSWERS

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)

C INTERVIEW QUESTIONS AND ANSWERS

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
WHAT IS ARITHMETIC OPERATOR IN C?... >>
<< WHAT ARE THE DIFFERENT TYPES OF OPERATORS IN C?...