Question Bank (2 marks) · Q24
Q.What is the use of logical operator?
Karnataka PUCTextbookShort· 2mImportance★★★★★est
74% · 114/154 Questions
You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.
Start your 14-day free trial to unlock the full solution →[!TLDR]
Logical operators (&&, ||, !) combine conditions to give one true/false result.
Logical operators are used to join or invert relational conditions so that a program can make decisions based on more than one test. C has three:
&&(logical AND): true only if both conditions are true.||(logical OR): true if at least one condition is true.!(logical NOT): reverses the truth value of a condition. …
Unlock everything free for 14 days
- Full step-by-step solutions
- Concept-first explanations
- Methods, shortcuts & mistakes
- PYQ mapping + timed mock tests
Full access for 14 days. No credit card required.