【计算机类职业资格】对函数的进一步讨论及答案解析.doc

上传人:bonesoil321 文档编号:1335383 上传时间:2019-10-17 格式:DOC 页数:4 大小:34.50KB
下载 相关 举报
【计算机类职业资格】对函数的进一步讨论及答案解析.doc_第1页
第1页 / 共4页
【计算机类职业资格】对函数的进一步讨论及答案解析.doc_第2页
第2页 / 共4页
【计算机类职业资格】对函数的进一步讨论及答案解析.doc_第3页
第3页 / 共4页
【计算机类职业资格】对函数的进一步讨论及答案解析.doc_第4页
第4页 / 共4页
亲,该文档总共4页,全部预览完了,如果喜欢就下载吧!
资源描述

1、对函数的进一步讨论及答案解析(总分:14.00,做题时间:90 分钟)一、B选择题/B(总题数:8,分数:8.00)1.下列程序执行后的输出结果是_。(分数:1.00)A.helloB.helC.hloD.hlm void func1 (int ; void func2 (int ; char st=“hello,friend!“; void func1(int printf(“%c“,s; if(i3) i+=2;func2(; void func2 (int printf(“c“,s; if(i3) i+=2;func1(; main() int i=0;func1(;printf(“/n

2、);2.程序中若有如下说明和定义语句 char fun (char*); main() char*s=“one“,a5=0,(*f1)()=fun,ch; 以下选项中对 fun()函数的正确调用语句是。(分数:1.00)A.(*f1)(;B.*f1(*;C.fun( i=f(fa,fb,2);printf(“%d/n“i; 程序运行后的输出结果是_。(分数:2.00)填空项 1:_11.以下程序通过函数指针 p调用函数 fun,请在填空栏内,写出定义变量 p的语句。 void fun (int*x,int*y) main() int a=10,b=20; _;严定义变量 p*/ p=fun;p( i=f(fa,fb,2);printf(“%d/n“i; 程序运行后的输出结果是_。(分数:2.00)填空项 1:_ (正确答案:4)解析:11.以下程序通过函数指针 p调用函数 fun,请在填空栏内,写出定义变量 p的语句。 void fun (int*x,int*y) main() int a=10,b=20; _;严定义变量 p*/ p=fun;p(&a,&b); (分数:2.00)填空项 1:_ (正确答案:void (*p)(int*,int *) 或 void(*p)())解析:

展开阅读全文
相关资源
猜你喜欢
  • BS ISO 20216-2015 Space data and information transfer systems Spacecraft onboard interface services Device data pooling service《空间数据和信息传输系统 航天器的接口业务 设备数据汇集服务》.pdf BS ISO 20216-2015 Space data and information transfer systems Spacecraft onboard interface services Device data pooling service《空间数据和信息传输系统 航天器的接口业务 设备数据汇集服务》.pdf
  • BS ISO 20217-2015 Space data and information transfer systems Spacecraft onboard interface services File and packet store services《空间数据和信息传输系统 航天器的接口业务 文件和数据包存储服务》.pdf BS ISO 20217-2015 Space data and information transfer systems Spacecraft onboard interface services File and packet store services《空间数据和信息传输系统 航天器的接口业务 文件和数据包存储服务》.pdf
  • BS ISO 20252-2012 Market opinion and social research Vocabulary and service requirements《市场 舆论和社会调查 词汇和服务要求》.pdf BS ISO 20252-2012 Market opinion and social research Vocabulary and service requirements《市场 舆论和社会调查 词汇和服务要求》.pdf
  • BS ISO 20267-2017 Thermal spraying Determination of interfacial toughness of ceramic coatings by indentation《热喷涂 采用压痕法测定陶瓷涂层的界面韧性》.pdf BS ISO 20267-2017 Thermal spraying Determination of interfacial toughness of ceramic coatings by indentation《热喷涂 采用压痕法测定陶瓷涂层的界面韧性》.pdf
  • BS ISO 20275-2017 Financial services Entity legal forms (ELF)《金融服务 实体法律形式》.pdf BS ISO 20275-2017 Financial services Entity legal forms (ELF)《金融服务 实体法律形式》.pdf
  • BS ISO 2028-2015 Synthetic rubber latex Preparation of dry polymer《合成橡胶胶乳 干聚合物的制备》.pdf BS ISO 2028-2015 Synthetic rubber latex Preparation of dry polymer《合成橡胶胶乳 干聚合物的制备》.pdf
  • BS ISO 20280-2008 Soil quality Determination of arsenic antimony and selenium in aqua regia soil extracts with electrothermal or hydride-generation atomic absorption spectrometry《土.pdf BS ISO 20280-2008 Soil quality Determination of arsenic antimony and selenium in aqua regia soil extracts with electrothermal or hydride-generation atomic absorption spectrometry《土.pdf
  • BS ISO 20282-1-2006 Ease of operation of everyday products - Design requirements for context of use and user characteristics《日用产品的便于操作性 使用和使用者特性背景下的设计要求》.pdf BS ISO 20282-1-2006 Ease of operation of everyday products - Design requirements for context of use and user characteristics《日用产品的便于操作性 使用和使用者特性背景下的设计要求》.pdf
  • BS ISO 20283-5-2016 Mechanical vibration Measurement of vibration on ships Guidelines for measurement evaluation and reporting of vibration with regard to habitability on passenger.pdf BS ISO 20283-5-2016 Mechanical vibration Measurement of vibration on ships Guidelines for measurement evaluation and reporting of vibration with regard to habitability on passenger.pdf
  • 相关搜索

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

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