which of the following is a logical OR operator' A. & B. && C. ! D. ||
Answers
Answered by
3
D. || is logical OR operator.
HOPE IT HELPS!!!!
HOPE IT HELPS!!!!
Answered by
0
Answer:
D. || is the logical OR operator.
Explanation:
Logical operators
- An operator is a symbol that is used for performing different operations.
- To combine two or more relational statements, we use logical operators . Logical operators always return Boolean values.
- The logical operators are used primarily in the expression evaluation for generating a decision.
- These operators allow the evaluation and manipulation of specific bits within the integer.
- Commonly used logical operators are AND, OR, and NOT.
- && (Logical AND): Logical AND operator returns true if all relational statements combined with && are true, otherwise it returns false.
- || (Logical OR) : Logical OR operator returns true if at least one of the relational statements combined with || is true, otherwise it returns false.
- ! (logical NOT) : Logical NOT operator returns the inverse of the statement's result.
To know more about Logical Operator, click here ->
https://brainly.in/question/9038113
https://brainly.in/question/2427275
Similar questions