【计算机类职业资格】国家二级C语言机试(操作题)模拟试卷342及答案解析.doc

上传人:roleaisle130 文档编号:1332156 上传时间:2019-10-17 格式:DOC 页数:2 大小:24KB
下载 相关 举报
【计算机类职业资格】国家二级C语言机试(操作题)模拟试卷342及答案解析.doc_第1页
第1页 / 共2页
【计算机类职业资格】国家二级C语言机试(操作题)模拟试卷342及答案解析.doc_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

1、国家二级 C语言机试(操作题)模拟试卷 342及答案解析(总分:6.00,做题时间:90 分钟)一、程序填空题(总题数:1,分数:2.00)1.给定程序中,函数 fun的功能是:有 NxN矩阵,以主对角线为对称线,对称元素相加并将结果存放在左下三角元素中,右上三角元素置为 0。 例如,若 N=3,有下列矩阵: 1 2 3 计算结果为 1 0 0 4 5 6 6 5 0 7 8 9 10 14 9 请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的结果。 注意:源程序存放在考生文件夹下的 BLANK1C 中。 不得增行或删行,也不得更改程序的结构! #include #define

2、 N 4 void fun (int (*t)_1_) int i,j; _3_ =0; main () int t N= 21,12,13,24,25,16,47, 38,29,11,32,54,42,21,33,10 ,i,j ; printf ( “ /nThe original array: /n“) ; for(j=0; j国家二级 C语言机试(操作题)模拟试卷 342答案解析(总分:6.00,做题时间:90 分钟)一、程序填空题(总题数:1,分数:2.00)1.给定程序中,函数 fun的功能是:有 NxN矩阵,以主对角线为对称线,对称元素相加并将结果存放在左下三角元素中,右上三角元

3、素置为 0。 例如,若 N=3,有下列矩阵: 1 2 3 计算结果为 1 0 0 4 5 6 6 5 0 7 8 9 10 14 9 请在程序的下划线处填入正确的内容并把下划线删除,使程序得出正确的结果。 注意:源程序存放在考生文件夹下的 BLANK1C 中。 不得增行或删行,也不得更改程序的结构! #include #define N 4 void fun (int (*t)_1_) int i,j; _3_ =0; main () int t N= 21,12,13,24,25,16,47, 38,29,11,32,54,42,21,33,10 ,i,j ; printf ( “ /nThe original array: /n“) ; for(j=0; j

展开阅读全文
相关资源
猜你喜欢
  • ANSI AIIM MS26-1990 35 mm Planetary Cameras (Top-Light) - Procedures for Determining Illumination Uniformity of Microfilming Engineering Drawings (Includes Errata and Amendment 1 1.pdf ANSI AIIM MS26-1990 35 mm Planetary Cameras (Top-Light) - Procedures for Determining Illumination Uniformity of Microfilming Engineering Drawings (Includes Errata and Amendment 1 1.pdf
  • ANSI AIIM MS28-1996 Alphanumeric COM Quality Test Slide《缩微制图学.字母数字COM质量试验幻灯片》.pdf ANSI AIIM MS28-1996 Alphanumeric COM Quality Test Slide《缩微制图学.字母数字COM质量试验幻灯片》.pdf
  • ANSI AIIM MS29-1992 Micrographics - Cores and Spools for Microfilm Recording Equipment - Dimensions《显微制图学.显微胶片记录设备的芯和轴》.pdf ANSI AIIM MS29-1992 Micrographics - Cores and Spools for Microfilm Recording Equipment - Dimensions《显微制图学.显微胶片记录设备的芯和轴》.pdf
  • ANSI AIIM MS32-1996 Standard Recommended Practice - Microrecording of Engineering Source Documents on 35mm Microfilm《35mm缩微胶片上工程原始资料文件的显微记录》.pdf ANSI AIIM MS32-1996 Standard Recommended Practice - Microrecording of Engineering Source Documents on 35mm Microfilm《35mm缩微胶片上工程原始资料文件的显微记录》.pdf
  • ANSI AIIM MS34-1990 Dimensions for Reels Used for 16 mm and 35 mm Microfilm《16mm和35mm缩微胶片上使用的卷轴尺寸》.pdf ANSI AIIM MS34-1990 Dimensions for Reels Used for 16 mm and 35 mm Microfilm《16mm和35mm缩微胶片上使用的卷轴尺寸》.pdf
  • ANSI AIIM MS35-1990 Recommended Practice for the Requirements and Characteristics of Original Documents That May Be Microfilmed《可能会被缩微胶片化的最初的黑白文件的要求和特性》.pdf ANSI AIIM MS35-1990 Recommended Practice for the Requirements and Characteristics of Original Documents That May Be Microfilmed《可能会被缩微胶片化的最初的黑白文件的要求和特性》.pdf
  • ANSI AIIM MS37-1988 Recommended Practice for Microphotography of Cartographic Materials (Includes Addendum 1996)《制图材料缩微照相的推荐实施规程》.pdf ANSI AIIM MS37-1988 Recommended Practice for Microphotography of Cartographic Materials (Includes Addendum 1996)《制图材料缩微照相的推荐实施规程》.pdf
  • ANSI AIIM MS38-1995 Standard Recommended Practice for the Microrecording of Engineering Graphics - Computer-Output Microfilm《工程制图缩微记录的推荐实施规程.计算机输出缩微胶片》.pdf ANSI AIIM MS38-1995 Standard Recommended Practice for the Microrecording of Engineering Graphics - Computer-Output Microfilm《工程制图缩微记录的推荐实施规程.计算机输出缩微胶片》.pdf
  • ANSI AIIM MS39-1987 Recommended Practice for Operational Procedures Quality Control and Inspection of Graphic Computer-Output Microforms《信息和图像管理.操作过程 图形计算机输出缩微版本的质量控制和检验操作规程》.pdf ANSI AIIM MS39-1987 Recommended Practice for Operational Procedures Quality Control and Inspection of Graphic Computer-Output Microforms《信息和图像管理.操作过程 图形计算机输出缩微版本的质量控制和检验操作规程》.pdf
  • 相关搜索

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

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