The complete set of C operators may be described as follows:
* , / , %
+ , -
++ , --
+ , -
Operands are subject to integral promotion.
The type of the result is related directly to the type of the operand(s).
<< , >>
& , ^ , |
~
Operands are subject to integral promotion.
The type of the result is related directly to the type of the operand(s).
< , <= , >= , >
The real type of the result is always int. The underlying type is treated as Boolean.
== , !=
The real type of the result is always int. The underlying type is treated as Boolean.
&&
||
!
The operands are interpreted as Boolean.
The real type of the result is always int. The underlying type is treated as Boolean.
=
*= , /= , %= , += , -= , <<= , >>= , &= , ^= , |=
Compound assignment operators exist only for the sets of binary arithmetic and bitwise operations.
? :
The 2nd and 3rd operands are subject to integral promotion and balancing (the usual arithmetic conversions) in computing the result.
[ ]
( )
. , ->
& *
(type)
,
sizeof