47

i++ or ++i ...

Comments
  • 11
    They both mean different things. The former returns before incrementing, while the latter increments before returning. Use wisely for with great power comes great whatever. 🙌
  • 8
  • 1
    Depends
  • 0
    Post- and Preincrement. But I think we mostly need Post, for the for!
  • 2
    By default i++, unless the situation requires ++i.
Add Comment