题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-12-06 22:31:26

[单选题]有以下程序 #include “stdio.h” void main() { int x, y, z; x=y=1; z=x++,y++,++y; printf("%d,%d,%d\n",x,y,z); } 程序运行后的输出结果是( )。
A.1,2,3
B.1,3,2
C.2,3,1
D.3,1,2

更多"[单选题]有以下程序 #include “stdio.h” "的相关试题:

[单选题]有以下程序 #include "stdio.h" void main() { int a=1, b=3, c=5; int *p1=&a, *p2=&b, *p=&c; *p =*p1*(*p2); printf("%d\n",c); } 执行后的输出结果是( )。
A.1
B.2
C.3
D.4
[单选题]有以下程序 #include "stdio.h" void main() { union { int i[2]; long k; char c[4]; }r,*s=&r; s->i[0]=0x39; s->i[1]=0x38; printf("%c\n",s->c[0]); } 执行后的输出结果是( )。
A.39
B.9
C.38
D.8
[单选题]有以下程序 #include "stdio.h" void main() { int x=0x02ff,y=0x0ff00; printf("%d\n",(x&y)>>4|0x005f); } 执行后的输出结果是( )。
A.127
B.255
C.128
D.1
[单选题]有以下程序 #include "stdio.h" void main() { char s[12]= "a book"; printf("%.4s",s); } 执行后的输出结果是( )。
A.a book!
B.a book![四个空格]
C.a bo
D.格式描述错误,输出不确定
[单选题]有以下程序 #include "stdio.h" void main() { int a=1; char c='a'; float f=2.0; printf("%d\n",(!(a==0),f!=0&&c=='A')); } 执行后的输出结果是( )。
A.3
B.2
C.1
D.0
[单选题]有以下程序 #include "stdio.h" void main() { int c; while((c=getchar())!='\n') switch(c -'2') { case 0: case 1: putchar(c+4); case 2: putchar(c+4);break; case 3: putchar(c+3); default: putchar(c+2);break; } printf("\n"); } 通过键盘输入446755,执行后的输出结果是( )。
A.888988
B.668966
C.88898787
D.66898787
[单选题]有以下程序 #include void main() { int a[][2]={10,20,30,40,50,60},(*p)[2]; p=a; printf("%d\n",*(*(p+2)+1)); } 程序运行后的输出结果是 ( )。  
A.10
B.20
C.40
D.60
[单选题]有以下程序 #include void main ( ) { int a[]={1, 2, 3, 4, 5} ; int x, y, *p; p=&a[0]; x=*(p+2); y=*(p+4); printf("%d,%d,%d\n", *p, x, y); } 执行后的输出结果是( )。
A.1,3,5
B.1,2,3
C.1,2,4
D.1,4,5
[单选题]有以下程序 #include void main() { int b[3] [3]={0,1,2,0,1,2,0,1,2},i,j,t=1; for(i=0; i<3; i++) for(j=i;j<=i;j++) t+=b[i][b[j][i]]; printf("%d\n",t); } 执行后的输出结果是( )。
A.1
B.2
C.3
D.4

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码