[计算机类试卷]国家二级C语言机试(操作题)模拟试卷15及答案与解析.doc

上传人:priceawful190 文档编号:498079 上传时间:2018-11-28 格式:DOC 页数:5 大小:44.50KB
下载 相关 举报
[计算机类试卷]国家二级C语言机试(操作题)模拟试卷15及答案与解析.doc_第1页
第1页 / 共5页
[计算机类试卷]国家二级C语言机试(操作题)模拟试卷15及答案与解析.doc_第2页
第2页 / 共5页
[计算机类试卷]国家二级C语言机试(操作题)模拟试卷15及答案与解析.doc_第3页
第3页 / 共5页
[计算机类试卷]国家二级C语言机试(操作题)模拟试卷15及答案与解析.doc_第4页
第4页 / 共5页
[计算机类试卷]国家二级C语言机试(操作题)模拟试卷15及答案与解析.doc_第5页
第5页 / 共5页
亲,该文档总共5页,全部预览完了,如果喜欢就下载吧!
资源描述

国家二级 C语言机试(操作题)模拟试卷 15及答案与解析 一、程序填空题 1 给定程序中,函数 fun的功能是:求 SS所指字符串数组中长度最短的字符串所在的行下标,作为函数值返回,并把其串长放在形参 n所指变量中。 ss所指字符串数组中共有 M个字符串,且串长 #include #define M 5 #define N 2 0 int fun(char(*sS)N, int *n) int i, k=0, 2en=N; /*found*/ for(i=0; i int fun() int i, j, k, sum=0; printf(“ nThe result: n n”); /*found*/ for(i=0; i=0 K=0 k=1&K=0&k=0 000001) *绝对值是否满足条件 * xn=xn*x*(0 5一 n+1) n; *表达式分解以后 xn=(xn1)*x*(0 5一 n+1) n* n+=1; sn+=xn; *sn累加上 xn* return(sn); 【试题解析】 (1)根据题干中给出的数列,推出每一项分子是在前一项分子的基础上乘以 (0 5-n+1)*x,分母则为阶乘,也就是在前一项分母的基础上乘以 n。 (2)在循环中求得每一项,然后对其进行累加求和。

展开阅读全文
相关资源
猜你喜欢
  • AECMA PREN 4243-2001 Aerospace Series Cast Acrylic Sheets Technical Specification Edition P 1《航空系列 铸件丙烯酸薄片技术规范.P1版》.pdf AECMA PREN 4243-2001 Aerospace Series Cast Acrylic Sheets Technical Specification Edition P 1《航空系列 铸件丙烯酸薄片技术规范.P1版》.pdf
  • AECMA PREN 4244-1995 Aerospace Series Heat Resisting Alloy FE-PM1708 Vacuum Arc Remelted Hardened and Tempered Bar a or D is Less Than or Equal to 200 mm 1000 MPa is Less Than or Et.pdf AECMA PREN 4244-1995 Aerospace Series Heat Resisting Alloy FE-PM1708 Vacuum Arc Remelted Hardened and Tempered Bar a or D is Less Than or Equal to 200 mm 1000 MPa is Less Than or Et.pdf
  • AECMA PREN 4245-1995 Aerospace Series Heat Resisting Alloy FE-PM1708 Vacuum Arc Remelted As Forged Forging Stock De is Less Than or Equal to 300 mm Edition P 1《航空系列 抗热合金FE-PM1708真空.pdf AECMA PREN 4245-1995 Aerospace Series Heat Resisting Alloy FE-PM1708 Vacuum Arc Remelted As Forged Forging Stock De is Less Than or Equal to 300 mm Edition P 1《航空系列 抗热合金FE-PM1708真空.pdf
  • AECMA PREN 4246-1995 Aerospace Series Heat Resisting Alloy CO-PH4101 Vacuum Melted as Forged Forging Stock De is Less Than or Equal to 360 mm Edition P 1《航空系列 抗热合金CO-PH4101真空熔制铸件De.pdf AECMA PREN 4246-1995 Aerospace Series Heat Resisting Alloy CO-PH4101 Vacuum Melted as Forged Forging Stock De is Less Than or Equal to 360 mm Edition P 1《航空系列 抗热合金CO-PH4101真空熔制铸件De.pdf
  • AECMA PREN 4247-2003 Aerospace Series Aluminium Alloy AL-P2024-T42 Plate 6mm less than a Less Than or Equal to 140 mm Edition P 2《航空系列 AL-P2024-T42型铝合金6mm小于或等于a小于或等于140mm的金属板.P2版》.pdf AECMA PREN 4247-2003 Aerospace Series Aluminium Alloy AL-P2024-T42 Plate 6mm less than a Less Than or Equal to 140 mm Edition P 2《航空系列 AL-P2024-T42型铝合金6mm小于或等于a小于或等于140mm的金属板.P2版》.pdf
  • AECMA PREN 4248-1996 Aerospace Series Nuts Anchor Self-Locking Fixed Single Lug with Counterbore in Heat Resisting Steel Silver Plated Classification  1 100 MPa (at Ambient Tempera.pdf AECMA PREN 4248-1996 Aerospace Series Nuts Anchor Self-Locking Fixed Single Lug with Counterbore in Heat Resisting Steel Silver Plated Classification 1 100 MPa (at Ambient Tempera.pdf
  • AECMA PREN 4249-1996 Aerospace Series Nuts Anchor Self-Locking Fixed Single Lug Reduced Series with Counterbore in Heat Resisting Steel Silver Plated Classification  1 100 MPa (at .pdf AECMA PREN 4249-1996 Aerospace Series Nuts Anchor Self-Locking Fixed Single Lug Reduced Series with Counterbore in Heat Resisting Steel Silver Plated Classification 1 100 MPa (at .pdf
  • AECMA PREN 4250-2001 Aerospace Series Nickel Base Alloy NI-B41001 Filler Metal for Brazing Amorphous Foil Edition P 2《航空系列 镍合金NI-B41001填充金属铜焊无定形金属薄片.P2版取代.P1版》.pdf AECMA PREN 4250-2001 Aerospace Series Nickel Base Alloy NI-B41001 Filler Metal for Brazing Amorphous Foil Edition P 2《航空系列 镍合金NI-B41001填充金属铜焊无定形金属薄片.P2版取代.P1版》.pdf
  • AECMA PREN 4251-1997 Aerospace Series Nuts Anchor Self-Locking Fixed 90 Degree Corner with Counterbore in Heat Resisting Steel Silver Plated Classification  1 100 MPa (at Ambient T.pdf AECMA PREN 4251-1997 Aerospace Series Nuts Anchor Self-Locking Fixed 90 Degree Corner with Counterbore in Heat Resisting Steel Silver Plated Classification 1 100 MPa (at Ambient T.pdf
  • 相关搜索

    当前位置:首页 > 考试资料 > 职业资格

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1