若有以下程序段 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
若有以下程序段 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
若有以下函数首部intfun(doublex[10],int.cn)则下面针对此函数的函数声明语句中正确的是
A.intfun(double,int);
B.intfun(double*x,intn);
C.intfun(double*,int*);
D.intfun(doublex,int*n);
有以下程序 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
若有以下程序段 intr=8; printf(%d\n,r>>1); 输出结果是
A.8
B.4
C.16
D.2
若有以下程序段:
int r=8;
print("%d\n",r>>1): 输出结果是()。
A.16
B.8
C.4
D.2
若有以下程序段 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
以下程序的执行结果是__。
#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<<",";}
若有以下程序段,则选项中值为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
A.++(p->n)
B.(*p).n
C.p->n++
D.p->n
A.(p++)->m
B.*(p++)->m
C.(*p).m
D.*(p)->m