【单选题】【消耗次数:1】
以下程序的输出结果是()。main(){printf("%d\n",fac(5));}fac(intn){ints;if(n==1)return1;elsereturnn*fac(n-1);}
120
60
6
1
参考答案:
复制
纠错
相关题目
【单选题】 执行下列程序后的输出结果是()。#includecharf(chars[],intn){return(s[n]);}main(){chara[]=ABCD;printf(%c,f(a,2)+1);}
①  D
②  C
③  B
④  A
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=5,b=4,c=3,d=2; if(ac)printf(%d\n else if((c-1=d)==1)printf(%d\n,d+1); else printf(%d\n,d+2); }
①  1
②  2
③  3
④  4
【单选题】 下述程序的运行结果( )。 #includevoid main() { int a=5,b=4,c=3,d=2; if(ac)printf(%d\n else if((c-1=d)==1)printf(%d\n,d+1); else printf(%d\n,d+2); }
①  0
②  1
③  2
④  3
【单选题】 执行下面程序:main(){intx=1,y=1,z=1;x=x+++y+++z++;printf("%d,%d,%d",x,++y,z++);}输出的结果为()
①  4,3,2
②  3,3,2
③  3,3,3
④  3,2,2
【单选题】 以下程序的运行结果是()。voidmain(){intm,n=1,t=1;if(t==0)t=-t;elsem=n=0?7:3;printf("%d\n",m);}
①  3
②  -1
③  7
④  1
【单选题】 以下程序的输出结果是(  )。#include stdio.h void main( ){ int a,b;for(a=1,b=1;aa++){ if (b=10) break;if (b%5==1) { b+=5; continue; } }printf(%d\n }
①  101
②  6
③  4
④  3
【单选题】 以下程序输出结果是( )。 Main() {int x=2,y=-1,z=2; if(xy) if(y0) z=0; else z+=1; printf(%d\n }
①  3
②  2
③  1
④  0
【简答题】 以下程序的输出结果是[填空1]。#include stdio.h void main( ){ int a,b;for(a=1,b=1;aa++){ if (b=10) break;if (b%5==1) { b+=5; continue; } }printf(%d\n }
【单选题】 以下程序段的运行结果是()。 inta=1;printf("%d,%d,%d\n",a,++a,a++);
①  3,3,1
②  1,2,2
③  1,2,3
④  3,2,1
【单选题】 以下程序运行结果是( )。 Main() {int if(m++5) printf(%d\n else printf(%d\n,m--); }
①  4
②  5
③  6
④  7
随机题目
【单选题】 现今世界上有两种流行的信用卡,它们是()。
①  VISA卡和MASTERCARD卡
②  CreditCard和DebitCard
③  汇票和本票
④  SmartCard与Alipay
【单选题】 子系统划分可以采用()方法。
①  E-R图
②  数据流程图
③  U/C矩阵
④  业务流程图
【单选题】 数据流程图的基本元素包括()。
①  数据流,内部实体,处理功能,数据存储
②  数据流,内部实体,外部实体,信息流
③  数据流,信息流,物流,资金流
④  数据流,外部实体,处理功能,数据存储
【单选题】 数据资料中含信息量的大小,是由()
①  数据资料中数据的多少来确定
②  数据资料的多少来确定
③  消除不确定程度来确定
④  数据资料的可靠程度来确定
【单选题】 目前所使用的数据库管理系统的结构,大多数为()
①  层次结构
②  关系结构
③  网状结构
④  链表结构
【单选题】 具有固定个体变动属性的数据应当存放在()
①  处理文件
②  随机文件
③  主文件
④  周转文件
【单选题】 校验计算应在()进行。
①  发送端
②  接收端
③  发送端和接收端
④  传输线路上
【单选题】 系统设计主要解决()的问题。
①  不做什么
②  编程
③  做什么
④  怎样做
【单选题】 BSP法的优点在于能保证()独立于企业的组织结构。
①  信息系统
②  数据类
③  管理功能
④  系统规划
【单选题】 企业使用了管理信息系统后,中层管理人员()。
①  将不再需要
②  可集中精力去做分析工作
③  继续做原来的工作
④  从事其他工作