Subj : Re: Terrible trouble To : borland.public.cpp.borlandcpp From : Steve Date : Tue Jul 08 2003 11:45 pm b wrote: > ok, so what is the difference from ++r and r++? > ++r is pre-increment, so r is increased before it is evaluated. r++ is post-increment, so r is increased after it is evaluated. try this code... #include int main() { int j = 0; int k = 0; cout << "j = " << j++ << endl; // prints 0 cout << "k = " << ++k << endl; // prints 1 return 0; } .