0

Explain different between ++i and i++

What is the difference between Increment and dicriment

28th Nov 2020, 7:57 PM
Adnan Musa
Adnan Musa - avatar
3 Answers
+ 5
++i increments and then evaluates, while i++ evaluates and then increments
28th Nov 2020, 8:03 PM
Igor Bezverhi
Igor Bezverhi - avatar
0
++i is pre increment it means i+1 then evaluate, i++ is post increment it means first evaluate then i+1 and also use same method for decrement.
28th Nov 2020, 11:01 PM
Abenezer Getnet
Abenezer Getnet - avatar
- 2
Hope this helps you... https://www.sololearn.com/Discuss/1690694/?ref=app Pls do search. Search bar will provide you lot of similar questions...
28th Nov 2020, 8:09 PM
Jayakrishna 🇼🇳