What is the difference between ++i and i++?
What is the difference between ++i and i++?
I haven't really understood the difference between
i++
and ++i
You're viewing a single thread.
All Comments
4 comments
i++
gives the current value ofi
and then increments it, while++i
increments it and returns the new value2 0 Reply