Advertisements
Advertisements
Question
The statement (a>b) && (a>c) uses a logical operator.
Options
True
False
MCQ
True or False
Solution
This statement is True.
Explanation:
- The && operator represents a logical AND operation. It returns true if both conditions (a > b) and (a > c) are satisfied; otherwise, it returns false.
- Logical operators combine numerous boolean expressions and return a boolean value.
shaalaa.com
Is there an error in this question or solution?