[计算机类试卷]国家二级C语言机试(操作题)模拟试卷359(无答案).doc

上传人:eveningprove235 文档编号:846914 上传时间:2019-02-21 格式:DOC 页数:3 大小:31.50KB
下载 相关 举报
[计算机类试卷]国家二级C语言机试(操作题)模拟试卷359(无答案).doc_第1页
第1页 / 共3页
[计算机类试卷]国家二级C语言机试(操作题)模拟试卷359(无答案).doc_第2页
第2页 / 共3页
[计算机类试卷]国家二级C语言机试(操作题)模拟试卷359(无答案).doc_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

1、国家二级 C 语言机试(操作题)模拟试卷 359(无答案)一、程序填空题1 函数 fun 的功能是:把形参 a 所指数组中的偶数按原顺序依次存放到 a0,a1、a2、中,把奇数从数组中删除,偶数个数通过函数值返回。例如:若 a 所指数组中的数据最初排列为:9、1、4、2、3、6、5、8、7,删除奇数后 a 所指数组中的数据为: 4、2、6、8,返回值为 4。请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的结果。注意:源程序存放在考生文件夹下的 BLANK1C 中。不得增行或删行,也不得更改程序的结构!#include #define N 9int fun (int a, int

2、 n) int i,j;j = 0;for(i=0;ivoici fun (char *a,int n)main()char s81; int n;void NONO ();printf (“Enter a string:n“);gets (s);printf (“Enter n:“);scanf(“d“, &n);fun (s,n) ;printf( “The string after deleted:n“);puts(s);NONO();void NONO()/*本函数用于打开文件,输入数据,调用函数,输出数据,关闭文件。 */FILE *in, *out ;int i, n ; char sl81;in= fopen (“indat“,“r“) ;out = fopen (“outdat“,“w“);for (i= 0 ; i 10 ; i+) fscanf (in, “s“,s);fscanf (in, “d“,n);fun (s,n) ;fprintf (out, “sn“,s) ;fclose (in);fclose (out);

展开阅读全文
相关资源
猜你喜欢
  • DIN EN 60424-4-2016 Ferrite cores - Guidelines on the limits of surface irregularities - Part 4 Ring-cores (IEC 60424-4 2015) German version EN 60424-4 2016《铁氧体磁芯 表面缺陷极限指南 第4部分 环形磁.pdf DIN EN 60424-4-2016 Ferrite cores - Guidelines on the limits of surface irregularities - Part 4 Ring-cores (IEC 60424-4 2015) German version EN 60424-4 2016《铁氧体磁芯 表面缺陷极限指南 第4部分 环形磁.pdf
  • DIN EN 60424-5-2009 Ferrite cores - Guide on the limits of surface irregularities - Part 5 Planar-cores (IEC 60424-5 2009) German version EN 60424-5 2009《铁氧体磁芯 表面缺陷的限值指南 第5部分 平面磁芯(.pdf DIN EN 60424-5-2009 Ferrite cores - Guide on the limits of surface irregularities - Part 5 Planar-cores (IEC 60424-5 2009) German version EN 60424-5 2009《铁氧体磁芯 表面缺陷的限值指南 第5部分 平面磁芯(.pdf
  • DIN EN 60424-8-2016 Ferrite cores - Guidelines on the limits of surface irregularities - Part 8 PQ-cores (IEC 60424-8 2015) German version EN 60424-8 2015《铁氧体磁芯 表面不规则性的限制指南 第8部分 PQ.pdf DIN EN 60424-8-2016 Ferrite cores - Guidelines on the limits of surface irregularities - Part 8 PQ-cores (IEC 60424-8 2015) German version EN 60424-8 2015《铁氧体磁芯 表面不规则性的限制指南 第8部分 PQ.pdf
  • DIN EN 60426 Berichtigung 1-2010 Electrical insulating materials - Determination of electrolytic corrosion caused by insulating materials - Test methods (IEC 60426 2007) German ver.pdf DIN EN 60426 Berichtigung 1-2010 Electrical insulating materials - Determination of electrolytic corrosion caused by insulating materials - Test methods (IEC 60426 2007) German ver.pdf
  • DIN EN 60426-2007 Electrical insulating materials - Determination of electrolytic corrosion caused by insulating materials - Test methods (IEC 60426 2007) German version EN 60426 2.pdf DIN EN 60426-2007 Electrical insulating materials - Determination of electrolytic corrosion caused by insulating materials - Test methods (IEC 60426 2007) German version EN 60426 2.pdf
  • DIN EN 60432-1-2012 Incandescent lamps - Safety specifications - Part 1 Tungsten filament lamps for domestic and similar general lighting purposes (IEC 60432-1 1999 modified + A1 2.pdf DIN EN 60432-1-2012 Incandescent lamps - Safety specifications - Part 1 Tungsten filament lamps for domestic and similar general lighting purposes (IEC 60432-1 1999 modified + A1 2.pdf
  • DIN EN 60432-2-2013 Incandescent lamps - Safety specifications - Part 2 Tungsten halogen lamps for domestic and similar general lighting purposes (IEC 60432-2 1999 modified + A1 20.pdf DIN EN 60432-2-2013 Incandescent lamps - Safety specifications - Part 2 Tungsten halogen lamps for domestic and similar general lighting purposes (IEC 60432-2 1999 modified + A1 20.pdf
  • DIN EN 60432-3-2013 Incandescent lamps - Safety specifications - Part 3 Tungsten-halogen lamps (non-vehicle) (IEC 60432-3 2012) German version EN 60432-3 2013《白炽灯 安全规范 第3部分 卤钨灯(非车辆.pdf DIN EN 60432-3-2013 Incandescent lamps - Safety specifications - Part 3 Tungsten-halogen lamps (non-vehicle) (IEC 60432-3 2012) German version EN 60432-3 2013《白炽灯 安全规范 第3部分 卤钨灯(非车辆.pdf
  • DIN EN 60433-1999 Insulators for overhead lines with a nominal voltage above 1 kV - Ceramic insulators for a c systems - Characteristics of insulator units of the long rod type (IE.pdf DIN EN 60433-1999 Insulators for overhead lines with a nominal voltage above 1 kV - Ceramic insulators for a c systems - Characteristics of insulator units of the long rod type (IE.pdf
  • 相关搜索

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

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