C is able to perform basic mathematical operations on variables and values using the following symbols:
+
-
/
*
++
--
%
C can assign values to variables and perform basic mathematical operations using shorthand operators:
=
+=
-=
*=
/=
%=
C can compare two values and/or variables against each other to return true or false. The operators are as follows:
==
!=
<
<=
>
>=
C can perform logical operations using the following operators:
&&
(Are both sides true?)||
(Is at least one side true?)!
(True becomes false and false becomes true.)