What is the difference between ++var and var++?
++var | var++ |
---|---|
This will first increment the value of the variable then process it. | It will first process the variable then increment its value. |
BY Best Interview Question ON 12 Sep 2020
++var | var++ |
---|---|
This will first increment the value of the variable then process it. | It will first process the variable then increment its value. |