Computer Science, asked by sanatkumarmasoura, 1 day ago

define conditional operator with one example​

Answers

Answered by mrityunjoydebbarma
0

Answer:

An Example of Conditional Operators

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.

Answered by jaiswalkshitij456
5

Answer:

Conditional operators are used to evaluate a condition that's applied to one or two boolean expressions. The result of the evaluation is either true or false. There are three conditional operators: && the logical AND operator. || the logical OR operator.

An Example of Conditional Operators

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.

___________________________________

Please Thanks to my 10 answer

Similar questions