Skip to content

Glossary: C++ Basics

Comparison operators

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

Operators that compare two values and give a `bool`: `==`, `!=`, `<`, `>`, `<=`, `>=`. Remember `==` tests equality, while one `=` assigns.

Where the book teaches it

Related terms

boolLogical operators