LearnFrenzy
Sign in Take a free test

Operators and Expressions · Operators MCQ · Question 9

How is a && b || c grouped in C? Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
Question 9 Back to Exercise

How does C group a && b || c?

  • A a && (b || c)
  • B (a && b) || c Correct
  • C Left to right with equal priority
  • D It is an error
Correct Answer: Option B

&& has higher precedence than ||. Brackets are still recommended – compilers warn about mixing them without parentheses.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links