Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Logical Operators Practice | Operators
course content

Course Content

C Basics

Logical Operators PracticeLogical Operators Practice

Here's a summary of the primary logical operators:

SymbolNameUsage ExampleDescription
&&ANDa && ba AND b
||ORa || ba OR b
!NOT!aNOT a

Task

Choose the appropriate comparison operators to ensure the expression evaluates to true (logical 1).

Everything was clear?

Section 3. Chapter 7
toggle bottom row
course content

Course Content

C Basics

Logical Operators PracticeLogical Operators Practice

Here's a summary of the primary logical operators:

SymbolNameUsage ExampleDescription
&&ANDa && ba AND b
||ORa || ba OR b
!NOT!aNOT a

Task

Choose the appropriate comparison operators to ensure the expression evaluates to true (logical 1).

Everything was clear?

Section 3. Chapter 7
toggle bottom row
some-alt