I always get confused with a++ and ++a. Is there any tip for remembering them? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

I always get confused with a++ and ++a. Is there any tip for remembering them?

For me, postfix and prefix is a confusing thing.

8th Aug 2017, 2:47 PM
Akhil Suresh
Akhil Suresh - avatar
2 Antworten
+ 8
a++ (use a before incrementing it) ++a (increment it, and then use it) https://www.sololearn.com/Discuss/407846/?ref=app
8th Aug 2017, 2:57 PM
Hatsy Rei
Hatsy Rei - avatar
+ 1
me too. so you can search durgasoft increment or decrement operator on YouTube. believe be it is very easy to understand
8th Aug 2017, 5:56 PM
meherDev
meherDev - avatar