answersLogoWhite

0

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

User Avatar

Wiki User

12y ago

What else can I help you with?