Hi. I have tried an arithmetic question, but I cannot get the same final answer with the computer output. Here is the code.

int p=1;

int r=25;

int g=2;

int t=3;

int k;

k= p++ + --r/g++ - ++t%g++;

1) g++ --> g = 2+1 = 3.

2) t % g = 3%3 = 0

3) ++ t%g++ --> 0 becomes 1

4) g++ --> g = 3+1 = 4;

5) r/g = 25/4 = 6;

6) --r/g++ --> 6 - 1 = 5;

7) p++ --> 1 + 1 = 2

Then the k will be 2 + 5 - 1 = 6.However the C compiler gives me K = 13.Can anyone expert guide me where have I done wrongly? Thanks.