decrementing value question

I ran the code below and x returns 6. I had my answer as 5 but I cant wrap my head around as to why the answer is 6. Can someone please explain to me what I am missing?

1
2
3
4
5
6

int number = 6;
int x = 0;
x = number--;
cout << x << endl;
Topic archived. No new replies allowed.