A.12. Common C Operators

Operators are internal C functions that, when they are applied to values, produce a result. Common types of C operators are arithmetic and logical.

A.12.1. Arithmetic Operators

Some common arithmetic operators are listed below.

= assignment
+ addition
- subtraction
* multiplication
/ division
% modulo reduction
++ increment
-- decrement 

Note that multiplication, division, and modulo reduction (%) operations will be performed before addition and subtraction in any expression. When division is performed on two integers, the result is an integer with the remainder discarded. Modulo reduction is the remainder from integer division. The ++ operator is a shorthand notation for the increment operation.

A.12.2. Logical Operators

Some common logical operators are listed below.

 <  less than
 <=  less than or equal to
 >  greater than
 >=  greater than or equal to
 ==  equal to
 !=  not equal to