Start here · Essential guide
The OR Operator in C++
Learn the OR operator in C++: || and its word form or, how short-circuit evaluation works, precedence, the bitwise | operator, and common mistakes.
Syntax and Functions
The OR operator and an overview of arithmetic and other C operators.
Start here · Essential guide
Learn the OR operator in C++: || and its word form or, how short-circuit evaluation works, precedence, the bitwise | operator, and common mistakes.
Arithmetic operators in C++ are +, -, *, / and %. Learn what each does, how integer division and remainder work, and see a working example program.
Operators are symbols such as +, ==, && and ! that act on values. Here are the main groups of operators in C and C++, with a short example program.
Related topics