Cosmic Q&A
What is the difference between ++i and i++?
Answer
In operators, ++i and i++ represents two slightly different approach to increment. ++i increments the value of i first and then return it. i++ will increment the value of i, but it will return the old value for i.
Share this page:
Report Error in Content