[求助]为什么会这样啊?菜鸟请教
#define LOW 0#define HIGH 5
#define CHANGE 2
int i=LOW;
main()
{
int i=HIGH;
reset(i/2);
printf("i=%d\n",i);
reset(i=i/2);
printf("i=%d\n",i);
i=reset(i/2);
printf("i=%d\n",i);
workover(i);
printf("i=%d\n",i);
}
workover(i)
int i;
{
i=(i%i)*((i*i)/(2*i)+4);
printf("i=%d\n",i);
return(i);
}
reset(i)
int i;
{
i=i<=CHANGE?HIGH:LOW;
return(i);
}
为什么这个程序输出的第二个i是2而不是5???