0
Anonymous
a++ returns the value of a and then increments it
++a increments a and then returns the value
so the following code:
a = 1;
std::cout << a++
std::cout << ++a
std::cout << a
would output 133
Wiki User
Chat with our AI personalities