Poll Results
No votes. Be the first one to vote.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In programming, the ternary operator is a type of conditional operator that takes three operands. It’s often described with the syntax: `condition ? expression1 : expression2`. This operator evaluates the condition: if the condition is true, it evaluates and returns expression1; if the condition is false, it evaluates and returns expression2. This operator is known for its use in simplifying concise conditional statements. In most programming languages that support it, such as JavaScript, C, C++, Java, and PHP, it is the only ternary operator (an operator taking three operands) and is thus commonly referred to simply as “the ternary operator.”
B. ?, :