皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
执行如下程序,从键盘依次输入十个整数:"1 0 0 0 1 2 3 0 2 0 ",则输出时a[4]的值是多少? #include "stdio.h" void main( ){ int a[10]; int i,j; for(i=0;i<10;i++) scanf("%d",&a[i]); for(i=0;i<10;i++){ if(a[i]==0){ j=i; while(j<10-1&&a[j]==0) j++; a[i]=a[j]; a[j]=0; } } for(i=0;i<10;i++) printf("%d\n",a[i]); }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】diesel oil may be used to cool _____ of a diesel engine.
A.
cylinders
B.
exhaust valves
C.
pistons
D.
fuel valves
【单选题】十进制数235,用二进制表达为( )
A.
11101011
B.
11101010
C.
11101001
D.
11101110
【单选题】掌握知识和技能的前提是
A.
性格
B.
需要
C.
能力
D.
认知
【单选题】Dear parents, Im pleased to announce the fifth anniversary of Ridge Language Institute. We have 20 experienced instructors, all of whom have 20 years of experience teaching in private and public schoo...
A.
Tutoring in geography
B.
Accounting for small businesses
C.
Training in foreign languages
D.
Translating and copying documents
【单选题】调香师需要掌握的知识,说法不准确的是 [    ]:
A.
香精配方的设计与检验
B.
想象、抽象表达和艺术方面的知识及加香技术
C.
“辨香”、“仿香”和“创香”知识
D.
合成香料的和原理及生产工艺
【单选题】根据以下语句,如果当前屏幕尺寸不超过 320 像素时,将自动匹配( )这个图像。
A.
1_1280.jpg
B.
1_640.jpg
C.
1_320.jpg
D.
以上均不能匹配
【简答题】Emily and Mandy wanted to be __________ (nurse) when they were children.
【单选题】The nurse "informed" me that visiting hours were over.
A.
打电话
B.
C.
告诉
【单选题】Lube oil in the fresh water cooling system of a diesel engine may result from a _______.
A.
camshaft seizure
B.
lube oil pump failure
C.
lube oil cooler failure
D.
lube oil pump overflow
【单选题】1,2,7,20,61,182,()
A.
268
B.
374
C.
486
D.
547
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题