First case
int i = 10;
int j = i++;
After execution value of
i would be 11 and value of
j would be 10.
As this operator is POSTincrement , increament will be done
AFTER the assignement.
Second case
int i = 10;
int j = ++i;
After execution value of
i would be 11 and value of
j would be 11.
As this operator is PREincrement , increament will be done
BEFORE the assignement.