posted 18 years ago
Hi Satya,
Yes u r right.. -- op has got more precedence than % but observe it carefully.It is postfix operator..so the value of i(=10) will be used in the expression first before it is decremented.So the expression becomes
10 % 5 = 0
In the next line try printing the value of i - it should be 9.
Hope now it is clear!!
Regards,
Priya.