纠错
全专业资料、题库、学位、网课
最高直省2344元
上千+科次精品网课
买网课即送全真模考题库
五千+科次教材资料
电子资料满三件9折
五千+科次在线题库
全真呈现历年考试试题
1、[填空题]执行下面程序输出结果是( )。
#include
#define N 8
void main() {
int a[N]={3,5,8,10,15,20,32,66};
int i, x;
for(i=0; i
}
printf("%d\n",a[1]+a[3]);
}
2、[填空题]执行了下面程序输出结果是( )。
#include
void main() {
int a[8]={12,15,20,8,5,9,16,10};
int i,j,x=a[0]+a[1];
for(i=0; i<8; i++)
for(j=i+1; j<8; j++)
if(a[i]+a[j]>x) x=a[i]+a[j];
printf("%d ",x);
}
3、[填空题]执行下面程序输出结果( )。
#include
void main() {
int a[8]={6,8,7,12,5,15,18,9};
int s=0;
int *p=a;
while(p printf("%d\n",s);
}
4、[填空题]执行程序,输出结果( )。
#include
void main() {
int n=10,y=0;
while(n>6) {y+=n; n--;}
printf("y=%d\n",y);
}
5、[填空题]执行了下面程序的输出结果( )。
#include
void main() {
int x=30,i=1,s=0;
do {s+=i*i; i++;} while(s
}
Copyright © 2010 - 2023 湖南求实创新教育科技有限公司 All Right Reserved.
温馨提示:如您需要的资料本网暂时没有,请于工作日08:00-18:00,点击这里,联系客服及时补充资料。