Increment

Hi,

Can somebody explain to me, how does the below code works? The answer is 8, 10 and 9 respectively but I don't know how to get to the answer.


int k = 8;

cout << k++ << endl;
cout << k + 1 << endl;
cout << k << endl;
Last edited on
Topic archived. No new replies allowed.