✏️ Explanatory Question

What is the syntax for ternary operator in C?

👁 763 Views
📘 Detailed Answer
💡

Answer with Explanation

Ternary operator is same as if else control statement in C.

Syntax : (Condition? true_value: false_value);

Example: (A > 100? 0: 1);