Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

The ++ and – Operators

 
Mathew Lee
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was looking at following link on The ++ and – Operators
http://www.jchq.net/certkey/0501certkey.htm

>>>This is because the ++ is placed after the number 1, and thus the incrementation (the adding of 1) will occur after the line is run. The same principle is true for the – operator.

I clearly did not understood. Does it mean The ++ and –- Operators instead of The ++ and – Operators.

Any ideas, resources,sample code,links, highly appreciated. thanks in advance
 
Campbell Ritchie
Sheriff
Pie
Posts: 50277
80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The bit about "after the line has run" is incorrect.
Look at these old thread, and the links in them: 1 2, and this FAQ.

As you will see, the ++ and -- operators cause no end of confusion.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic