Why would anyone want to use a post-increment operator? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponse
+ 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