题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-10-23 06:13:20

[单选题]下面程序的输出结果是 ( )。 main() { int a[10]={1,2,3,4,5,6,7,8,9,10},*p=a; printf("%d\n",*(p+2));}
A.3
B.4
C.1
D.2

更多"[单选题]下面程序的输出结果是 ( )。 main() { in"的相关试题:

[单选题]下面程序的输出结果是 ( )。 main() { int a[10]={1,2,3,4,5,6,7,8,9,10},*p=a; printf("%d\n",*(p+2));}
A.3
B.4
C.1
D.2
[单选题]以下程序输出结果是()。        main() { int m=5; if(m++>5) printf("%d\n",m); esle printf("%d\n",m- -); }
A.7
B.6
C.5
D.4
[单选题]以下程序的输出结果是( )。 main() { int a, b; for(a=1, b=1; a<=100; a++) { if(b>=10) break; if (b%3= =1) { b+=3; continue; } } printf("%d\n",a); }
A.101
B.6
C.5
D.4
[单选题]下面程序的输出结果是()。 #include #include main() { char *p1="abc",*p2="ABC",str[50]= "xyz"; strcpy(str+2,strcat(p1,p2)); printf("%s\n",str);}
A.xyzabcABC
B.zabcABC
C.xyabcABC
D.yzabcABC
[单选题]以下程序的输出结果是()。 main() { int i,j,x=0; for(i=0;i<2;i++) { x++; for(j=0;j<3;j++) { if(j%2)continue; x++; } x++; } printf("x=%d\n",x); }
A.x=4
B.x=8
C.x=6
D.x=12
[单选题]以下程序段输出结果是()。 main() { int k,j,s; for(k=2;k<6;k++,k++) { s=1;for(j=k;j<6;j++) s+=j;} printf(“%d\n”,s);}
A.9
B.1
C.11
D.10
[单选题]下列程序的输出结果是()。 main() { double d=3.2; int x,y; x=1.2; y=(x+3.8)/5.0; printf("%d \n", d*y); }
A.3
B.3.2
C.0
D.3.07
[单选题]以下程序的输出结果是()。 main() { int a=4,b=5,c=0,d; d=!a&&!b||!c; printf("%d\n",d);}
A.1
B.0
C.非0数
D.-1
[单选题]下面程序的输出结果为()。 struct st { int x; int *y; } *p; int dt[4]={10,20,30,40}; struct st aa[4]={ 50,&dt[0],60,&dt[1],70,&dt[2],80,&dt[3] }; main() { p=aa; printf("%d\n", ++p->x ); printf("%d\n", (++p)->x); printf("%d\n", ++( *p->y)); }
A.10 20 20
B.50 20 20
C.51 60 21
D.60 70 31
[单选题]下面程序输出数组中的最大值,由s指针指向该元素. main() { int a[10]={6,7,2,9,1,10,5,8,4,3,},*p,*s; flr(p=a, s=a; p-a<10; p++) if(_________)s=p; printf("The max:%d",*s): } 则在if语句中的判断表达式应该是()。
A.p>s
B.*p>*s
C.a[p]>a[s]
D.p-a>p-

我来回答:

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

订单号:

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