<lvalue>++ // <lvalue> = <lvalue> + 1 <lvalue>-- // <lvalue> = <lvalue> - 1 |
// Example: postfix notation
{
int i=3, j;
i++; // i = 4
j = i++; // i = 5, j = 4
// above postfix notation is equivalent to
j = i;
i = i + 1;
}
|
Prä- und Postfixnotation sollten sparsam verwendet werden,
meist benutzt man diese für eine Indexvariable in Zyklen (§ 4).