请写出下面程序的运行结果。
long fun (int k )
{
long fac;
if(k= =0)
return 1;
else
{
fac=k* fun(k-1);
printf("fac=%ld\n",fac);
}
return fac;
}
void main(void)
{
int n=3;
printf("result=%ld\n",fun(n+1)/n);
}
延伸阅读
你可能感兴趣的试题
10
210
3210
43210
A,66,102,a
A.x&y&z ;
B.x¦y¦z ;
C.x^x+y^y ;
D.z>>y ;
E.x&0xff00
A.struct person{long bh; char *name; int age;}
psl={9100,"wang",20},* pst; pst=psl; printf("%d",*pst→agE.;
B.struct my_data
{int num; struct my_data *next;};
C.struct test
{char *course; char *class}
D.struct worker
{char name[9]; float gz;}Li={"Li Ping",532.67};
E.struct int_num {int i _num;struct int_num *next; }ione, *pi; pi=&ione;
A.s="abcd";
B.gets(s);
C.scanf("%s",s);
D.strcpy(s,"abcd");
E.strcpy("abcd",s);
热门相关试卷
最新相关试卷