Hint:
int b = 0, c;
c = b++;
c = b++;
c = b++;
c = b++;
System.out.println(c);
c
now will be 3 like you thought, but because in your question you're assigning b
, it'll get 0, because as already explained, it's the same as:
int tmp = b;
b = b + 1;
b = tmp;