Why would anyone want to use a post-increment operator? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why would anyone want to use a post-increment operator?

It just seems like the pre-increment operator is always more useful.

27th Jan 2017, 10:59 PM
Isaiah Nixon
Isaiah Nixon - avatar
1 Answer
+ 1
you mostly use them in loops where you would want to check the value before you increment the value.
1st Feb 2017, 10:28 PM
Andrew
Andrew - avatar