|
|
|
|
|
|
Operators
- Postfix
|
Postfix operators are operators that are suffixed to an
expression.
operand++;
This causes the value of the operand to be returned.
After the result is obtained, the value of the operand is
incremented by 1.
operand--;
This is the same but the value of the operand is decremented
by 1.
Examples:
int joe=3;
joe++;
The value of joe is now 4.
printf("%i",joe++);
This outputs the number 4. The value of joe
is now 5.
|
|
|
|
|
|
|
<<<
Back to C Language Library Reference Guide |
|
<<<
Back to Electronics Tutorials |
|
|
|