Bird
0
0

Which logical operator in C means AND and returns true only if both conditions are true?

easy📝 Conceptual Q11 of 15
C - Operators and Expressions
Which logical operator in C means AND and returns true only if both conditions are true?
A!
B||
C&&
D&
Step-by-Step Solution
Solution:
  1. Step 1: Understand logical AND operator

    The logical AND operator (&&) returns true only if both conditions it connects are true.
  2. Step 2: Compare with other operators

    The || operator means OR, ! means NOT, and & is bitwise AND, not logical AND.
  3. Final Answer:

    && -> Option C
  4. Quick Check:

    AND = && [OK]
Quick Trick: AND operator is double ampersand && [OK]
Common Mistakes:
  • Confusing & (bitwise) with && (logical)
  • Mixing OR and AND operators
  • Using ! for AND

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More C Quizzes