测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

PROBLEM SET

题库

按难度与知识点筛选,找到适合的练习题。

共 67434 题
重置

题目列表

共 67434 题
A37046 #include<stdio.h>main(){ int aa[5][5]={{5,6,1,8},{1,2,3,4},{1,2,5,6},{5,9,10,2}}; int i,s=0; for(i=0;i<4;i++) s+=aa[i][2]; printf("%d",s); }程序运行后的输出结果是()。 其他-C-L2 -- 困难 -- A37047 设Y为整型变量,A=1,A的地址为EF01;B=2,B的地址为EF02;执行语句B=&A;Y=&b;后Y的值()。 其他-C-L2 -- 困难 -- A37048 fun(int *b,int c,int d){ int k; for(k=0;k<c*d;k++) { *b=c+d; b++; }}则调用此函数的正确写法是(假设变量a的说明为int a[10])( )。 其他-C-L2 -- 困难 -- A37049 执行下列程序时输入456<空格>789<空格>123<回车>,输出结果是#include<stdio.h>main(){ char m[80]; int c,i; scanf("%c",&c); scanf("%d",&i); scanf("%s",&m); printf("%c,%d,%s\n",c,i,m);} 其他-C-L2 -- 困难 -- A37050 C语言规定,函数返回值的类型是()。 其他-C-L2 -- 困难 -- A37051 #include<stdio.h>main(){ int c; while(c=getchar()!='\n') { switch(c-'3') { case 0: case 1:putchar(c+4); case 2:putchar(c+4);break; case 3:putchar(c+3); case 4:putchar(c+3);break; } } printf("\n"); }从… 其他-C-L2 -- 困难 -- A37052 #include<stdio.h>main(){ int a=0,b=1,c=2; if(++a>0||++b>0) ++c; printf("%d,%d,%d",a,b,c); }输出结果 其他-C-L2 -- 困难 -- A37053 下面的for语句的循环次数为()。for(x=1,y=0;(y!=19)&&(x<6);x++); 其他-C-L2 -- 困难 -- A37054 #include<stdio.h>main(){ int a[]={1,2,3,4},y,*p=&a[3]; --p;y=*p; printf("y=%d\n",y); }运行结果为 其他-C-L2 -- 困难 -- A37055 请阅读以下程序;#include<stdio.h>main(){ int x=1,y=0,a=0,b=0; switch(x) { case 1: switch(y) { case 0:a++;break; case 1:b++;break; } case 2: a++;b++;break; } printf("a=%d,b=%d\n",a,b); }输出结果为 其他-C-L2 -- 困难 -- A37056 以下程序的运行结果是()。main(){ int a=-5,b=1,c=1; int x=0,y=2,z=0; if(c>0) x=x+y; if(a<=0) { if(b>0) if(c<=0) y=x-y; } else if(c>0) y=x-y; else z=y; printf("%d,%d,%d\n",x,y,z); } 其他-C-L2 -- 困难 -- A37057 若有说明int a[3][4];则数组元素的非法引用是()。 其他-C-L2 -- 困难 -- A37058 下列关于逻辑运算符两侧运算对象的叙述中正确的是()。 其他-C-L2 -- 困难 -- A37059 若下列选项中的各变量均为整型且已有值,其中不正确的赋值语句是( ) 其他-C-L2 -- 困难 -- A37060 若有定义:int a=7,float x=2.5,y=4.7;则表达式x+a%3*(int)(x+y)%2/4的值是( ) 其他-C-L2 -- 困难 -- A37061 下列叙述中错误的是()。 其他-C-L2 -- 困难 -- A37062 已知int a=6;则执行a+=a-=a*a;语句后,a的值为()。 其他-C-L2 -- 困难 -- A37063 以下叙述中正确的是()。 其他-C-L2 -- 困难 -- A37064 C语言规定,在一个C程序中,main()函数的位置()。 其他-C-L2 -- 困难 -- A37065 设有课程关系模式R(C#,Cn,T,TA)(其中,C#为课程号,Cn为课程名,T为教师名,TA为教师地址),并且假定不同课程号可以有相同的课程名,每门课程只有一位任课教师,但每位教师可以有多门课程。关系R范式最高达到( ) 其他-C-L2 -- 困难 --