 |
Electronics Circuits &
Tutorials |
|
|
|
|
|
|
Home >
Electronics Tutorials >
C Language
Tutorial > Operators - Postfix |
C Language Programming Library
Reference Guide
|
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. |
|
|
Note: To report broken links or to submit your projects,
tutorials please email to Webmaster |
|
|
|
|
Copyright ©
1999-2020
www.hobbyprojects.com
(All rights reserved) |
|