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
Choose the appropriate comparison operators to ensure the expression evaluates to true
(logical 1
).
Task
Choose the appropriate comparison operators to ensure the expression evaluates to true
(logical 1
).
Everything was clear?
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
Choose the appropriate comparison operators to ensure the expression evaluates to true
(logical 1
).
Task
Choose the appropriate comparison operators to ensure the expression evaluates to true
(logical 1
).
Everything was clear?
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
Choose the appropriate comparison operators to ensure the expression evaluates to true
(logical 1
).
Task
Choose the appropriate comparison operators to ensure the expression evaluates to true
(logical 1
).
Everything was clear?
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
Choose the appropriate comparison operators to ensure the expression evaluates to true
(logical 1
).