What are i++ or ++i or i-- or --i in programming language?? Why you should use them?

Md. Fahim Bin Amin - May 28 '23 - - Dev Community

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

. . . . . . . . . . . . . . . . . . . . . . . . .