首页 > 大学专科> 电子信息
题目内容 (请给出正确答案)
[主观题]

若有以下程序段 doublex=5.16894; printf(%f\n,(int)(x*1000+0.5)/(double)1000); 则程序段的

若有以下程序段 doublex=5.16894; printf(%f\n,(int)(x*1000+0.5)/(double)1000); 则程序段的输出结果是

A.5.175000

B.5.169000

C.5.170000

D.5.168

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“若有以下程序段 doublex=5.16894; print…”相关的问题
第1题
若有以下函数首部intfun(doublex[10],int.cn)则下面针对此函数的函数声明语句中正确的是A.intfun

若有以下函数首部intfun(doublex[10],int.cn)则下面针对此函数的函数声明语句中正确的是

A.intfun(double,int);

B.intfun(double*x,intn);

C.intfun(double*,int*);

D.intfun(doublex,int*n);

点击查看答案
第2题
若有定义:doublex[3][5];则数组中列下标的上限为4。()
点击查看答案
第3题
有以下程序 include<stdio.h> doublef(doublex); main() {doublea:0;inti; for(i=0;i<3

有以下程序 include<stdio.h> doublef(doublex); main() {doublea:0;inti; for(i=0;i<30;i+=10)a+=f((double)i); printf(%5.of\n,a); } doublef(doublex) {returnx*x+1;} 程序运行后的输出结果是

A.401

B.500

C.503

D.1404

点击查看答案
第4题
若有以下程序段 intr=8; printf(%d\n,r>>1); 输出结果是A.8B.4C.16D.2

若有以下程序段 intr=8; printf(%d\n,r>>1); 输出结果是

A.8

B.4

C.16

D.2

点击查看答案
第5题
若有以下程序段:int r=8;print("%d\n",r>>1): 输出结果是()。A.16B.8C.4D.2

若有以下程序段:

int r=8;

print("%d\n",r>>1): 输出结果是()。

A.16

B.8

C.4

D.2

点击查看答案
第6题
若有以下程序段 charstr[4][12]={aa,bbb,ccccc,d),*strp[4]; inti; for(i=0;i<4;i++)strp[i]=

若有以下程序段 charstr[4][12]={aa,bbb,ccccc,d),*strp[4]; inti; for(i=0;i<4;i++)strp[i]=str[i];不能正确引用字符串的选项是

A.strp

B.str[0]

C.strp[3]

D.*strp

点击查看答案
第7题
以下程序的执行结果是__。#include<iostream.h>voidfunc(int);voidfunc(double);voidmain(){dou
以下程序的执行结果是__。#include<iostream.h>voidfunc(int);voidfunc(double);voidmain(){dou

以下程序的执行结果是__。

#include<iostream.h>voidfunc(int);voidfunc(double);voidmain()

{

doublea=88.18;func(a);intb=97;func(b);}voidfunc(intx){

cout<<x<<endl;}

voidfunc(doublex){

cout<<x<<",";}

点击查看答案
第8题
若有以下程序段,则选项中值为2的是()。 struCt a{int n,*next;}; int x=1,y=2,z=3;

若有以下程序段,则选项中值为2的是()。 struCt a{int n,*next;}; int x=1,y=2,z=3; struct a s[3],*p=s; S [0].next=&x;s[1].next=&V;S[2].next=&z;

A.*(p++)一>next

B.*(p)一>next

C.(*p).next

D.(p++)一>next

点击查看答案
第9题
若有以下程序段 structst{intn;structst*next;); structsta[3]={5,&a[1],7,&a[2],9,\0},*p; p
=&a[0]; 则以下选项中值为6的表达式是

A.++(p->n)

B.(*p).n

C.p->n++

D.p->n

点击查看答案
第10题
若有以下程序段: Struct dent {int n;int*m;}; int a=1,b=2,c=3; struct de
nt S[3]={{101,&a},{102,&b),{103,&c}}; main() {struct dent*P; P=S;…) 则以下表达式值为2是()。

A.(p++)->m

B.*(p++)->m

C.(*p).m

D.*(p)->m

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改