Output of the code

In reply to Nandakumari:

Okay. I got you but why incremented value is not assigned? can you explain.

Thanks