In our programming learning, we frequently use the i++ or ++i, i-- or --i.
Sometimes, it is pretty tricky to understand why we use them and how they actually work in different perspective.
However, I have discussed everything in a video.
๐น Make sure to watch it to understand better.
Let me also clarify what we call those 4 specific things:
- i++: Post increment
- ++i: Pre increment
- i--: Post decrement
- --i: Pre decrement
You can connect me via:
๐ LinkedIn, Twitter, GitHub, English YouTube Channel, Bengali YouTube Channel
๐ผ๏ธ Cover: Photo by Nate Grant on Unsplash
Top comments (2)
Thank you so much for the correction. I did a mistake there for having a rush! Silly me ๐
That's also true, but we tend to use that in Java, C/C++ a lot to be honest.