Operators
Operators have the purpose to combine values and variables. They can do mathematical computations, call functions, access pointers, do logical comparisons and much more. Operators are the executing elements of the C programming language. They always return a value of a defined type.
Operator concepts
Arithmetical operators
++
varPre-increment operator
--
varPre-decrement operator
var++
Post-increment operator
var--
Post-decrement operator
Comparison operators
Logical operators
Assignment operators
+=
Addition assignment operator
-=
Subtraction assignment operator
*=
Multiplication assignment operator
/=
Divison assignment operator
%=
Modulo assignment operator
&=
Binary AND assignment operator
|=
Binary OR assignment operator
^=
Binary XOR assignment operator
<<=
Shift left assignment operator
>>=
Shift right assignment operator
Memory operators
->
Pointer access operator
sizeof
Sizeof Object operator (Incomplete)
sizeof()
Sizeof Type operator (Incomplete)
General operators
()
Bracketing of operators
(
Type)
Explicit type cast (Incomplete)