According to this:
The expression ++n increments n before its value is used, while n++ increments n after its value has been used.
why this source code:
int j = 0;
j = j++;
printf("j: %d\n",j);
j++;
printf("j (again): %d\n",j);
prints this:
instead of printing this:
j: 1
j (again): 2
I thought that it should be something like the following:
First, put to j the value of itself, which is 0
Then, increase the j by 1 and now j will be 2 from now on
What did I miss here?