Course Content
C Basics
C Basics
Logical Operators Practice
Here's a summary of the primary logical operators:
Symbol | Name | Usage Example | Description |
---|---|---|---|
&& | AND | a && b | a AND b |
|| | OR | a || b | a OR b |
! | NOT | !a | NOT a |
Task
Swipe to show code editor
Choose the appropriate comparison operators to ensure the expression evaluates to true
(logical 1
).
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 3. Chapter 7
Logical Operators Practice
Here's a summary of the primary logical operators:
Symbol | Name | Usage Example | Description |
---|---|---|---|
&& | AND | a && b | a AND b |
|| | OR | a || b | a OR b |
! | NOT | !a | NOT a |
Task
Swipe to show code editor
Choose the appropriate comparison operators to ensure the expression evaluates to true
(logical 1
).
Solution
Switch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?
Thanks for your feedback!
Section 3. Chapter 7
Switch to desktop for real-world practiceContinue from where you are using one of the options below