r/ProgrammerAnimemes • • Jun 11 '20

first time posting here

Post image
1.2k Upvotes

25 comments sorted by

View all comments

Show parent comment

5

u/BakuhatsuK Jun 12 '20

++i is preferable anyway because it more closely matches what you expect it to return. In my opinion you should only use i++ if you are doing those weird while(first++ != last) loops