'--a' is called prefix decrements. First, the value stored in the variable 'a' gets decremented and then gets assigned to the same variable.
Whereas, 'a--' is called postfix decrements. The value stored in the variable 'a' gets decremented after the execution of the particular line.
Read More →