求助运行结果是fact=1为什么不是fact=120(编译器是turbo C 2.0windows环境下)
#include<stdio.h>int fact()
{
static int i=5;
if(i==0)return 1;
else
{
i--;
return(i+1)*fact();
}
}
void main()
{
printf("fact=%d\n",fact());
}
2012-07-25 00:35
2012-07-25 00:53

2012-07-25 07:07
2012-07-25 07:52
2012-07-25 08:54
2012-07-25 09:03
2012-07-25 09:10
2012-07-25 10:08
2012-07-25 10:28

2012-07-25 10:36