[求助]为何结果是这样?
int i=0;main()
{int i=5;
reset(i/2); printf("i=%d\n",i);
reset(i=i/2); printf("i=%d\n",i);
reset(i/2); printf("i=%d\n",i);
workover(i); printf("i=%d\n",i);
workover(int i)
{i=(i%i)*((i*i)/(2*i)+4);
printf("i=%d\n",i);
return(i);
}
reset(int i)
{i=i<=2? 5:0;
return(i);
}
为何结果是
i=5
i=2
i=2
i=0
i=2