1/24/00
COM1100 Winter2000 Lecture 7
24
Prefix vs. Postfix
increment operator
n
Prefix increment operator : when ++
appears before a variable
n
Example : ++x;
n
Postfix increment operator : When ++
appears after a variable
n
Example : x++;