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

[单项选择]下面程序段的输出结果是( )。
#include<stdio.h>
main( )
float x=1.236547;
printf("%f/n",(int)(x*1000+0.5)/(float)1000);

A. 1.237000
B. 输出格式说明与输出项不匹配,输出无定值
C. 1.236000
D. 1.24

更多"下面程序段的输出结果是( )。 #include<stdio.h>"的相关试题:

[单项选择]阅读下面程序段,则执行后输出的结果是
#include"stdio.h"
main( )
char fun(char,int);
char a='A';
int b=13;
a=fun(a,b);
putchar(
A. ;
[单项选择]以下程序段的输出结果是( )。
#include<stdio.h>
main( )
char p[][4]="ABC","DEF","GHI";
int i;
for(i=0;i<3;i++)
puts(p[i]);

A. A
B. A D G
C. A B C
D. A B C
[单项选择]下面程序段的运行结果是
   #include<iostream.h>
   void main( )
    char*s="abcde";
   S+=2;
   cout<<&s;
[单项选择]下面程序段的输出为( )。
#include "stdio h"
main( )
printf("11%d/n",12<<2);
A. 0
B. 47
C. 48
D. 24
[单项选择]下面程序段的运行结果是( )。 #include<stdio.h> void main( ) {char str[]="ABC",*p=str; pfintf("%d/n",*(p+3)); }
[单项选择]下面程序段的输出为
#include"stdio.h"
main( )
printf("%d/n",12<<2);
A. 0
B. 47
C. 48
D. 24
[单项选择]以下程序运行后的输出结果是
#include
#include
main( )
char str[][20]='One * World", "One * Dream!", *p=str[1];
printf("%d,", strlen(p)); printf("%s/n", p);

A. 9,One * World
B. 9,One * Dream
C. 10,One * Dream!
D. 10,One * World
[单项选择]执行下列程序段,结果是
#include
void main( )
int x=40;
char y='C';
int n;
n=(x&0xff)&&c(y> 'B');
cout < < n;
A. 0
B. 1
C. 2
D. 3
[单项选择]以下程序运行后的输出结果是 #include #include main( ) { char str[][20]={'One * World", "One * Dream!"}, *p=str[1]; printf("%d,", strlen(p)); printf("%s/n", p); }
A. 9,One * World
B. 9,One * Dream
C. 10,One * Dream!
D. 10,One * World
[单项选择]执行下列程序段,结果是
#include<iostream.h>
void main( )
int x=40;
char y='C';
int n;
n=(x&0xff)&&(y>'B');
cout<<n;
A. 0
B. 1
C. 2
D. 3

我来回答:

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

订单号:

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