题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-05-12 05:12:24

[单选题]有以下程序 #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"的相关试题:

[单选题]有以下程序 #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" void main( ) { char str[80]; scanf("%s",str); insert(str); } insert(char s[]) { int i; for(i=strlen(s);i>0;i--) { s[2*i]=s[i]; s[2*i-1]=' '; } printf("%s",s); } 如果输入的字符串是abcd, 则程序的运行结果是 ( ) 。
A. a b c d
B.a c b d
C.a b c d
D.d c b a
[单选题]有以下程序 #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() { 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 "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 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

我来回答:

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

订单号:

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