OR is a ____ operator
Answers
Answer:
logical maybe or it maybe a relational operator
Answer:
The answer to the given question is:
Logical
Explanation:
If either or both operands are true, the logical OR operator () produces the boolean value true; otherwise, it returns false. Before evaluation, the operands are implicitly transformed to bool type, and the result is also of the bool type. Left-to-right associativity exists in logical OR.
The boolean, integral, or pointer types are the only ones that are required for the operands of the logical OR operator. Commonly, relational or equality expressions serve as the operands.
Before continuing to evaluate the logical OR statement, the first operand is fully evaluated, as are all side effects.
Because evaluation is unnecessary when the logical OR expression is true, the second operand is only tested if the first operand evaluates to false. It is referred to as short-circuit analysis.
#SPJ5