So far you have seen how we do additional and subtraction by using 2 variable to preform additional and subtraction and assign it to a their variable.
Incremental, decremental and assignment operator are the similar to additional and subtraction. Incremental operator will be used if you want to add 1 to the variable. For example count++. Decremental operator will be used if you want to subtract 1 to the variable. For example: count– . Assignment operator will be used if you want to add value that are more than 1 or subtract value more than 1. For example: count += 5 or count -=5.
In incremental and decremental there are 2 types of it. One is pre and one is post. The code below will show and explain about this 2 types:




