重要提示:请勿将账号共享给其他人使用,违者账号将被封禁!
查看《购买须知》>>>
首页 > 考试题库
网友您好,请在下方输入框内输入要搜索的题目:
搜题
如搜索结果不匹配,请联系老师获取答案
扫码添加老师QQ
扫码添加老师微信
题目内容 (请给出正确答案)
[单选题]

有以下程序: #include main(){ inta=0,b=0,c=0,d=0;()?++c:++d; printf(); } 程序的运行结果是()

A.1,0,1,0

B.1,1,0,1

C.1,0,0,1

D.1,1,1,0

答案

A、1,0,1,0

更多“有以下程序: #include main(){ inta=0,b=0,c=0,d=0;()?++c:++d; printf(); } 程序的运行结果是()”相关的问题

第1题

有以下程序 #include #include main(){ inta = 3; printf( 行后的输出结果是()

A.-12

B.9

C.0

D.3

点击查看答案

第2题

有以下程序: include<stclio.h> main() { char c; while((c=getchar())!=?)pu

有以下程序: include<stclio.h> main() { char c; while((c=getchar())!=?)putchar(--c); } 程序运行时,如果从键盘输入:Y?N?<回车>,则输出结果为【 】。

点击查看答案

第3题

有以下程序#include<stdio.h>#include<string.h>main(){char x[]=“STRING”;x[0]=0;

有以下程序

#include<stdio.h>

#include<string.h>

main()

{char x[]=“STRING”;

x[0]=0;x[1]=’\0’;x[2]=’0’;

printf(”%d%d\n”,sizeof(x),strlen(x));

}

程序运行后的输出结果是()。

A.6 1

B.7 0

C.6 3

D.7 1

点击查看答案

第4题

有以下程序 #include<stdio.h> main {int y=9; for(;y>0;y--) if(y%3==0)printf("%d",-

有以下程序 #include<stdio.h> main {int y=9; for(;y>0;y--) if(y%3==0)printf("%d",--y); } 程序的运行结果是()。

A.741

B.963

C.852

D.875421

点击查看答案

第5题

有以下程序:#include<stdio.h>main(){int x=3,y=2,z=1; printf("%d\n",x/y&~z);程序运行后的

有以下程序: #include <stdio.h> main() { int x=3,y=2,z=1; printf("%d\n",x/y&~z); 程序运行后的输出结果是()。

A.3

B.2

C.1

D.0

点击查看答案

第6题

有以下程序: #include main {int n=9; while(n>6){19--;printf("%d",n);} } 该程序段的输出结果是()

A.987

B.876

C.8765

D.9876

点击查看答案

第7题

有以下程序 include<stdio.h> main() { ints[12]={1,2,3,4,4,3,2,1,1,1,2,3),c[5]:{O},i

有以下程序 include<stdio.h> main() { ints[12]={1,2,3,4,4,3,2,1,1,1,2,3),c[5]:{O},i; for(i=0;i<12;i++)c[s[i]]++; for(i=1;i<5;i++)printf(%d,c[i]); printf(\n); }

A.4332

B.2344

C.1234

D.1123

点击查看答案

第8题

有以下程序: #include<stdio.h> main() {char b,C;int i; b=a;c=A; for(i=0;i<6;

有以下程序: #include<stdio.h> main() {char b,C;int i; b=a;c=A; for(i=0;i<6;i++) {if(i%2)putchar(i+b); else putchar(i+c); }printf("\n"); } 程序运行后的输出结果是()。

A.ABCDEF

B.AbCdEf

C.aBcDeF

D.abcdef

点击查看答案

第9题

有以下程序:#include <stdio.h>main(){int i,s=0,t[] = {1,2,3,4,5,6,7,8,9};for(i=0;i<9;i+=2)

有以下程序:#include <stdio.h>main(){ int i,s=0,t[] = {1,2,3,4,5,6,7,8,9}; for(i=0;i<9;i+=2) s+=*(t+i); prinff("% d \n ",s);

A.45

B.20

C.25

D.36

点击查看答案

第10题

‎有以下程序‎#include‎void main()‎{int a ;‎scanf("%d",&a);‎if(a >= 0)‎{if

A.-11 is a positive odd number.

B.-11 is a negative odd number.

C.-11 is a positive even number.

D.11 is a negative even number.

点击查看答案
下载APP
关注公众号
TOP
重置密码
账号:
旧密码:
新密码:
确认密码:
确认修改
购买搜题卡查看答案 购买前请仔细阅读《购买须知》
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《服务协议》《购买须知》
立即支付 系统将自动为您注册账号
已付款,但不能查看答案,请点这里登录即可>>>
请使用微信扫码支付(元)

订单号:

遇到问题请联系在线客服

请不要关闭本页面,支付完成后请点击【支付完成】按钮
遇到问题请联系在线客服
恭喜您,购买搜题卡成功 系统为您生成的账号密码如下:
重要提示:请勿将账号共享给其他人使用,违者账号将被封禁。
发送账号到微信 保存账号查看答案
怕账号密码记不住?建议关注微信公众号绑定微信,开通微信扫码登录功能
请用微信扫码测试
优题宝