Question: what are ternary operator in c?
Answer: Ternary Operator in C Explained. Programmers use the ternary operator for decision making in place of longer if and else conditional statements. The ternary operator take three arguments: The first is a comparison argument. The second is the result upon a true comparison.