单项选择题
有以下程序:#include <stdio.h>int fun(int n){ static int t=1;……
有以下程序:
#include <stdio.h>
int fun(int n)
{ static int t=1; int i=1;
for( ; i<=n; i++)t* =i;
return t;
}
main()
{ int t=1,i;
for(i=2;i<4; i++)
t+=fun(i);
printf("%d\n",t);
}
程序的运行结果是______。
A.8
B.11
C.15
D.4