+ 2

prefix & postfix

what is the difference between i++ and ++i ? I know well about i++. But how does ++i work?

22nd Aug 2020, 5:51 AM
Md. Tayebur Rahim
Md. Tayebur Rahim - avatar
4 Respuestas
+ 2
Thanks for help
22nd Aug 2020, 7:22 AM
Md. Tayebur Rahim
Md. Tayebur Rahim - avatar
+ 2
This will help you to understood the concepts of pre-fix and postfix with examples https://www.tutorialspoint.com/Difference-between-prefix-and-postfix-operators-in-Chash#:~:text=The%20increment%20operator%20%2B%2B%20if,is%20called%20Prefix%20increment%20operator.
22nd Aug 2020, 7:59 AM
A S Raghuvanshi
A S Raghuvanshi - avatar