Example & Tutorial understanding programming in easy ways.

What is the difference between --a and a-- ?

'--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 →