Hi,
you are declaring i as constant , then how is it possible to apply operations on it.
if you do like i++/++i/--i/i-- like operations on i
then it means you are doing i=i+1/i-1;
so value of constant you can not change , thats why you are facing problem.
I think you will known about it.
regards,
Prashant Kumar Singh