Answers for "pre-increment vs post-increment"

2

pre-increment vs post-increment

++x (pre-increment) means "increment the variable; the value of the expression is the final value"
x++ (post-increment) means "remember the original value, then increment the variable; the value of the expression is the original value"
Posted by: Guest on April-28-2020

Browse Popular Code Answers by Language