纠错
全专业资料、题库、学位、网课
最高直省2344元
上千+科次精品网课
买网课即送全真模考题库
五千+科次教材资料
电子资料满三件9折
五千+科次在线题库
全真呈现历年考试试题
1、[填空题]执行下面程序输出结果为( )。
#include
void main() {
int a[3][3]={{3,8,6},{5,9,2},{8,5,12}};
int i,j,s=0;
for(i=0;i<3;i++)
for(j=0;j<3;j++)
if(a[i][j]%3==0) s+=a[i][j];
printf("s=%d\n",s);
}
2、[填空题]此程序运行后,得到的输出结果为( )。
#include
int fn3(int a, int b) {
int c=a; a=b; b=c;
return a+2*b-3;
}
void main() {
int a=3, b=5;
int c=fn3(a+2,b+3);
printf("%d\n",3*a+b+c);
}2
3、[填空题]执行了下面程序的输出结果是什么?()
#include
void main() {
int i,s=0;
for(i=1;i<10;i+=3) s+=i*(i+1);
printf("s=%d\n",s);
}
4、[填空题]执行下面程序输出结果是( )。
#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]);
}
5、[主观题]编写一个主函数,计算并输出表达式1+22+32+...+102的值。
Copyright © 2010 - 2023 湖南求实创新教育科技有限公司 All Right Reserved.
温馨提示:如您需要的资料本网暂时没有,请于工作日08:00-18:00,点击这里,联系客服及时补充资料。