-- operator has more precedence than %..SO should n't this be like 9 % 5 = 4..
posted 10 years ago
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.