Skip to content

Glossary: C Basics

Comparison operators

Also written: ==, !=, <, >, <=, >=

Operators that compare two values and give 1 for true or 0 for false: `==` (equal, with two equals signs), `!=`, `<`, `>`, `<=` and `>=`. Don't confuse `==` with `=`, which stores.

Where the book teaches it

Related terms

ConditionLogical operatorsAssignment