what is conditional operator?
Answers
Answered by
3
Answer:
The Conditional operator is supported in many programming languages. This term usually refers to?: as in C, C++, C#, and JavaScript. However, in Java, this term can also refer to && and ||.
Answered by
2
The conditional operator "&&" first evaluates whether its first operand (i.e., number % 2 == 0) is true and then evaluates whether its second operand (i.e., number % 4 == 0) is true. As both are true, the logical AND condition is true.
Similar questions
Chemistry,
2 days ago
Math,
2 days ago
Hindi,
4 days ago
Math,
4 days ago
Social Sciences,
8 months ago