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

[单选题]有以下程序   #include <stdio.h>   main()   { unsigned char a=8,c;   c=a>>3;   printf("%d\n",c);   }   程序运行后的输出结果是()。  
A.32
B.16
C.1
D.0

更多"[单选题]有以下程序   #include &lt;stdio.h> "的相关试题:

[单选题]有以下程序   #include   main()   { unsigned char a=8,c;   c=a>>3;   printf("%d\n",c);   }   程序运行后的输出结果是()。  
A.32
B.16
C.1
D.0
[单选题]有以下程序   #include   void main()   { int s;   scanf("%d",&s);   while(s>0)   { switch(s)   { case 1:printf("%d",s+5);   case 2:printf("%d",s+4); break;   case 3:printf("%d",s+3);   default:printf("%d",s+1);break;   }   scanf("%d",&s);   }   }   运行时,若输入1 2 3 4 5 0<回车>,则输出结果是( )。
A.6566456
B.66656
C.66666
D.6666656
[单选题]有以下程序   #include   main()   { char a[30],b[30];   scanf("%s",a);   gets(b);   printf("%s\n %s\n",a,b);   }   程序运行时若输入:   how are you? I am fine<回车>   则输出结果是()。
A.how are you?
B.how  are you? I am fine
C.how are you? I am fine
D.how are you?
[单选题]有以下程序 #include main() { char p[]={′a′, ′b′, ′c′},q[10]={ ′a′, ′b′, ′c′}; printf("%d%d\n",strlen(p),strlen(q));} 以下叙述中正确的是 ( )。
A.在给p和q数组置初值时,系统会自动添加字符串结束符,故输出的长度都为3
B. 由于p数组中没有字符串结束符,长度不能确定,但q数组中字符串长度为3
C.由于q数组中没有字符串结束符,长度不能确定,但p数组中字符串长度为3
D.由于p和q数组中都没有字符串结束符,故长度都不能确定
[单选题]有以下程序   #include   main()   { int x;   scanf("%d",&x);   if(x>15) printf("%d",x-5);   if(x>10) printf("%d",x);   if(x>5) printf("%d\n",x+5);   }   若程序运行时从键盘输入12<回车>,则输出结果为( )。
A.7
B.1217
C.12
D.17

我来回答:

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

订单号:

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