问题
填空题
有以下程序:
#include <stdio.h>
main()
int t=1,i=5;
for(;i>=0;i--) t*=i;
printf("%d\\n",t);
执行后的输出结果是 。
答案
参考答案:0
解析: 本题是计算5*4*3*2*1*0的值,结果为0。
有以下程序:
#include <stdio.h>
main()
int t=1,i=5;
for(;i>=0;i--) t*=i;
printf("%d\\n",t);
执行后的输出结果是 。
参考答案:0
解析: 本题是计算5*4*3*2*1*0的值,结果为0。