a++ is just like doing:
a=a+1;
++a is just like doing:
a+1=a;
decrement is no different, I am sure you get the picture.
a++ is just like doing:
a=a+1;
++a is just like doing:
a+1=a;
decrement is no different, I am sure you get the picture.
That is not correct. Both a++ and ++a are the same as a = a + 1. The difference is in the value they return: a++ returns a before the increment, ++a returns a after the increment.