Follow

If x++ adds one to x, does x+++ add two?

No. Think about how many '+'s you would have to type to add 100! Instead, you should do something like this: x += 2; which is equivalent to: x = x + 2

Was this article helpful?
20 out of 26 found this helpful
Have more questions? Submit a request

Comments