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

[单项选择]请读程序: #include<stdio.h> main( ) { int a=5,b=7,c=9; pintf("%d,%d,"a,b,C) ; printf("%d,%d",a,D) ; } 上面程序的输出结果是_______。
A. 5,7,9,5,7
B. 5,7,5,7
C. 5,7,不定7,9
D. 5,7,5,7,不定

更多"请读程序: #include<stdio.h> main( ) "的相关试题:

[单项选择]请读程序:
#include<stdio.h>
main( )

int a;float b,c;
scanf("%2d%3t%4f",&a,&b,&c);
printf("/na=%d,b=%f,c=%f/n",a,b,c);

若运行时从键盘上输入(图片),则上面程序的输出结果是______。
A. a=98,b=765,c=4321
B. a=10,b=432,c=8765
C. a=98,b=765.000000,c=4321.000000
D. a=98,b=765.0,c=4321.0
[单项选择]请读程序: #include<stdio.h> main( ) { int a;float b,c; scanf("%2d%3t%4f",&a,&b,&c); printf("/na=%d,b=%f,c=%f/n",a,b,c); } 若运行时从键盘上输入(图片),则上面程序的输出结果是______。
A. a=98,b=765,c=4321
B. a=10,b=432,c=8765
C. a=98,b=765.000000,c=4321.000000
D. a=98,b=765.0,c=4321.0
[单项选择]请读程序:
# include<stdio.h>
main( )
int num=0;
while(num<=2)
num+ +;printf("%d/n",num);

上面程序的输出结果是 ( )
A. 1
B. 1
C. 1
D. 1
[单项选择]请读程序:
#include <stdio.h>
main( )
int a,b;
for(a = 1,b = 1 ;a <= 100;a++)
if(b>=20) break;
if(b%3 ==1) b +=3;continue;
b-=5;

printf("%d/n",
A. ;
[单项选择]请读程序: #include <stdio.h> main( ) { int a,b; for(a = 1,b = 1 ;a <= 100;a++) { if(b>=20) break; if(b%3 ==1) { b +=3;continue; } b-=5; } printf("%d/n",a); } 上面程序的输出结果是( )。
A. 7
B. 8
C. 9
D. 10
[单项选择]有以下程序 #include main(int argc,char *argv[]) {int i=1,n=0; while(iA. 3
B. 5
C. 7
D. 11
[单项选择]请读程序:
  # include<srdio.h>
  main( )
   int n[2],i,j,k;
   for(i=0,i<2;i + + )n[i]=0;
   k=2;
   for(i=0;i<k;i+ +)
    for(j=0;j<k;j+ +)n[j]=n[i]+l;
  print("%d//n",n[k]);
  
  上面程序片段输出结果是 ( )
A. 不确定的值
B. 3
C. 23
D. 1
[单项选择]请读程序:
#include <stdio.h>
int a[]=2,4,6,8,;
main( )
int i;
int *p=a;
for( i=0;i<4;i++) a[i]=*p++;
priatf("%d/n",a[2]);

上面程序的输出结果是( )。
A. 6
B. 8
C. 4
D. 2
[单项选择]有以下程序 #include main( ) { int i=5; do { if(i%3==1) if(i%5==2) {printf("*%d",i);break; } i ++; } while(i!=0); printf("/n"); } 程序的运行结果是
A. *7
B. *3*5
C. *5
D. *2*6

我来回答:

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

订单号:

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