Can someone pls enlighten me on post increment and pre increment operators. | SoloLearn: Learn to code for FREE!

0

Can someone pls enlighten me on post increment and pre increment operators.

5/29/2020 4:56:01 AM

Victor Emmanuel

2 Answers

New Answer

+1

The main point is that ++a increments the value and immediately returns it. a++ also increments the value (in the background) but returns unchanged value of the variable - what looks like it is executed later. Hope you understand the concept. Rock the code🤟🤟

0

Victor Emmanuel Please use searchbar before posting a new question in Q/A to avoid posting duplicate threads https://www.sololearn.com/Discuss/303369/?ref=app https://www.sololearn.com/Discuss/1182526/?ref=app https://www.sololearn.com/Discuss/582949/?ref=app https://www.sololearn.com/Discuss/898398/?ref=app https://www.sololearn.com/Discuss/874370/?ref=app