Question Bank (2 marks) · Q25
Q.If a=3, b=5 and c=6, find a&&b||c||(!b)&&(!c).
Karnataka PUCTextbookNumeric· 2mImportance★★★★★est
77% · 118/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]
The expression evaluates to 1 (true).
In C a non-zero value counts as true and zero as false. Here a=3, b=5, c=6 are all non-zero (true), so !b = 0 and !c = 0. Logical AND (&&) has higher precedence than logical OR (||), so the expression groups as:
- a && b = 1 (both true) …
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.