Nice observation! Just observe what exactly is happening here:
First is, you are assigning the variable 'i3' with the value 0.
Second, you are doing:
What happens here? This is a post-incrementation operation. That means, you are first assigning i3 with the existing value of i3 itself and then immediately incrementing it by 1. But this assigned i3 is now zero itself and not one. If you split up this into two lines of code, it would be like this:
So the third statement also does the very same thing! Finally, the value of i3 is juzt zero. The proper way of doing this would be as follows:
Got the point? Try this out!
