Skip to content

Glossary: C Basics

Logical operators

Also written: &&, ||, !, and, or, not

Operators that combine true/false values: `&&` (and), `||` (or) and `!` (not). C treats 0 as false and any other number as true.

Where the book teaches it

Related terms

Comparison operatorsCondition