皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
下列给定函数fun()的功能是:将长整型数中每一位上为奇数的数依次取出,构成一个新数放在冲。高位仍在高位,低位仍在低位。例如当s中的数为87653142时,t中的数为7531。 请改正函数fun()中的错误,使它能得出正确的结果。 注意:不要改动main函数,不得增行或删行,也不得更改程序的结构。 试题程序: include <stdio.h> include <conlo.h> void fun (long s, long *t) {int d; long s1=1; /*************found**************/ t=0; while(s>0) { d=s%10; /*************found**************/ if(d%2==0) {*t=d*s1+*t; s1*=10; } s/=10; } } main() {long s, t; clrscr(); printf('/nPlease enter s:');scanf('%ld',&s); fun(s,&t); printf('The result is:%ld/n',t); }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【简答题】根据采购流程,设计目标企业的采购模型。
【单选题】人类在建筑活动初期阶段,就已经开始对 两方面的功能给与关注。
A.
使用和氛围、物质和精神
B.
空间和氛围、物质与神态
C.
材料与形态、空间与围合
D.
使用与空间、物质与精神
【简答题】Find out the missing words from the dialogue in the Video Story.In New Zealand, we say “four seasons in one day”, that means the weather can change _________.
【单选题】The officer talked about the ________ in the job market.
A.
present circumastances
B.
circumastances present
C.
presenting circumastances
D.
presented circumastances
【简答题】专用机床夹具一般由以下几部分组成:(1) ;(2) ;(3) ;(4) ;(5) 。
【多选题】夹具由以下几部分组成
A.
定位装置
B.
夹紧装置
C.
夹具体
D.
动力装置
【单选题】深反射不包括( )
A.
肱二头肌反射
B.
跖反射
C.
膝反射
D.
腹壁反射
E.
踝反射
【单选题】太阳常数指在日地平均距离(D=1.496x10 8 km)上,大气顶界垂直于太阳光线的单位面积每分钟接受的太阳辐射。地球大气层之外测量的太阳常数值为?
A.
1300 ±7W/m 2
B.
1000 ±5W/m 2
C.
998 ±5W/m 2
D.
1367 ±7W/m 2
【单选题】被涂物表面存在异物的影响,涂料不能均匀附着,产生收缩而露出被涂物表面的现象称为{.XZ}
A.
鱼眼
B.
咬底
C.
起皱
D.
起泡
【单选题】An advantage of a U-shaped production line is that it:
A.
is more compact.
B.
permits better communication among employees.
C.
facilitates teamwork among workers.
D.
increases flexibility of work assignments.
E.
all of the above
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题