Table 2.3: Arithmetic Assignment Operators Symbol Meaning +=
Addition Assignment
–=
Subtraction Assignment
*=
Multiplication Assignment
/=
Division Assignment
%=
Modulus Assignment
Relational Operators Relational operators are used to compare two expressions. When two expressions are compared they
return either a true or false value. C supports the relational operators shown in
Table 2.4
.
Table 2.4: Relational Operators Symbol Meaning >
Greater than
<
Less than
= =
Equal to
!=
Not equal to
<=
Less than or equal to
>=
Greater than or equal to
Please note here that, in general, relational operators are used in conditional expressions that are responsible for program flow statements. These operators are used within the program
control flow statement.