【单选题】【消耗次数:1】
设enumcolor{red,yellow=2,blue,white,black}r=white;,执行printf("%d",r);后的输出结果是(   )
0
1
3
4
参考答案:
复制
纠错
➡️如需代学继续教育,联系微信:yizhituziang

相关题目
【单选题】 有以下程序,执行后输出结果是() main( ) { int m[][3]={1,4,7,2,5,8,3,6,9}; int i,j,k=2; for(i=0;i { printf(%d ,m[k][i]); } }
①  4 5 6
②  2 5 8
③  3 6 9
④  7 8 9
【单选题】 以下程序的运行结果是()。#defineMUL(r)r*rmain(){inta=2,b=3,c;c=MUL(a+b)*2;printf("%d",c);}
①  10
②  14
③  36
④  50
【单选题】 语句:printf("%d",(a=2)&&(b=-2));的输出结果是()
①  无输出
②  结果不确定
③  1
④  2
【单选题】 若有定义intm=4321,n=123,k=21;语句printf("%4d+%3d+%2d",m,n,k);执行后的输出结果是()。
①  4321432143211231231232121
②  432112321
③  4321+123+21
④  432+123+021
【简答题】 设数据结构A=(D,R),其中D={1,2,3,4},R={r},r={1,22,33,44,1},则数据结构A是[填空1]。
【单选题】 以下程序的运行结果是( )。 void fun(int array[3][3]) { int j; for(j=0;jj++) array[1][j]=array[1][j]++; printf(\n} void main(){ int j,a[3][3]={0,1,2,1,0,4,2,4,5};fun(a);for(j=0;jj++)printf(%d,a[1][j]); printf(\n }
①  1 0 4
②  2 1 5
③  0 1 2
④  1 2 3
【单选题】 有以下程序#includestdio.hmain(){ int a=1,b=0;if(--a) else if(a==0) b+=2;else b+=3;printf(“%d\n”,b); }程序运行后的输出结果是(  )。
①  0
②  1
③  2
④  3
【单选题】 有以下程序#includestdio.hmain(){ int a=1,b=0;if(--a) else if(a==0) b+=2;else b+=3;printf(“%d\n”,b); }程序运行后的输出结果是。
①  0
②  1
③  2
④  3
【单选题】 以下程序输出结果是( )。 Main() {int x=2,y=-1,z=2; if(xy) if(y0) z=0; else z+=1; printf(%d\n }
①  3
②  2
③  1
④  0
【单选题】 main(){char a[]=Money;printf(%c,a[0]);}执行上面的程序段后,输出结果是()。
①  M
②  Money
③  m
④  Mon
随机题目
【单选题】 与传统的程序设计语言相比,VB最突出的特点是()。
①  程序开发环境
②  程序调试技术
③  事件驱动编程机制
④  结构化程序设计
【单选题】 要想在过程调用后返回两个结果,下面的过程定义语句合法的是()。
①  Subp(ByValn,ByValm)
②  Subp(n,ByValm)
③  Subp(n,m)
④  Subp(ByValn,m)
【单选题】 下列说明错误的是()。
①  ConstMyVar#=123
②  Dimmynameasstring
③  dimaasinteger,dimbassingle
④  dimMyString="Hello,"+"Myfriend!"
【单选题】 用InputBox函数可帮助生成()。
①  消息框
②  “保存”对话框
③  简单输入框
④  “颜色”对话框
【判断题】 事件过程与Sub过程,它们相同点都是事件驱动,而不同的只是事件过程由控件属性决定,而Sub过程是由户自定义。
①  正确
②  错误
【单选题】 d的值分别为10和5,则下列语句中ForI=ctod:PrintI:NextI循环体的执行次数是()。
①  6
②  5
③  1
④  0
【单选题】 ()对象能使用print方法。
①  文本框
②  命令按钮
③  图片框
④  标签
【单选题】 确定一个控件在窗体或报表上的位置的属性是()。
①  Width或Height
②  Width和Height
③  Top或Left
④  Top和Left
【单选题】 下列程序段If(2*2=5)(2*2=4)Then:Print"Trueisgreaterthanfalse":Else:Print"Falseisgreaterthantrue"的运行结果是()。
①  Trueisgreaterthanfalse
②  Falseisgreaterthantrue
③  False
④  True
【单选题】 以下程序段的执行结果是()。
①  0
②  25
③  5
④  16