it's like this ++i makes the value of i 6
then iafter the division make the division of 6 with 6 and you get one...
which is stored in i
then the ++ makes it two....
Hi Nikhil,
It sure was a coincidence... What are the odds, 2 people posting the answer at the same time and in similar manner!!!
Harmax,
If you read my post or Nikhil's post carefully, and rework with any value of i manually, u will see the reason. It is not that division has higher priority over '(', but that it has higher priority over post-increment operator.
Hi Guest we just wanted to alert you to a major change in the forum. We will no longer be allowing the posting of outgoing links. Please use the attachment feature to attach media to your posts.