网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

下列程序段的输出结果为().  float x=213.82631;   printf("%3d",(int)x);

  • A、213.82
  • B、213.83
  • C、213
  • D、3.8

参考答案

更多 “下列程序段的输出结果为().  float x=213.82631;   printf("%3d",(int)x);A、213.82B、213.83C、213D、3.8” 相关考题
考题 下面程序段的输出结果是()。includemain(){float x=1.236547;printf("%f\n",(int)(x*10 下面程序段的输出结果是( )。 #include<stdio.h> main() {float x=1.236547; printf("%f\n",(int)(x*1000+0.5)/(float)1000); }A.1.237000B.输出格式说明与输出项不匹配,输出无定值C.1.236000D.1.24

考题 下列程序段的输出结果为()。includemain(){static char a[]="language";char*p;p=a;for 下列程序段的输出结果为( )。 #include<stdio.h> main() { static char a[]="language"; char*p; p=a; for(p=a;p<a+8;p+=2) putchar(*p); }A.1B.4C.9D.0

考题 下列程序段的输出结果是【15】 。cout

考题 float f=3.1415927; printf(“%f,%5.4f,%3.3f”,f,f,f); 则程序的输出结果是__________。

考题 下列程序的输出结果是 【11】 , 【12】 。#include math.hmain(){ float a=-1.3;b=1.3;printf("%f,%f",fabs(a),fabs(b);}

考题 下列程序段的输出结果是:int a=1234;float b=123.456;double c=12345.54321;printf("%2d,%2.1f,%2.1f",a,b,c);A.无输出B.12,123.5,12345.5C.1234,123.5,12345.5D.1234,123.4,1234.5

考题 下列程序的招待结果是【 】。 include float temp;float fn2(float r){ temp=r* 下列程序的招待结果是【 】。include <iostream. h>float temp;float fn2(float r){temp=r* r* 3.14;return temp;}void main( ){float a=fn2(5.0);float b=fn2(5.0)b=20;cout<<temp<<end1;}

考题 下列程序段的输出结果为()。includemain(){ static char a[]="language";char *p;p=a;f 下列程序段的输出结果为( )。 #include<stdio.h> main() { static char a[]="language"; char *p; p=a; for(p=a;p<a+8;p+=2) putchar(*p); }A.languageB.lnugC.有语法错误D.lang

考题 下列程序段执行后的输出结果为()。A.0B.1C.2D.3

考题 在C++中,下列程序段的输出结果是【 】。int x, a[10];cout<<sizeof(x)<<“”<<sizeof(a)<<“”<<sizeof(float)<<end1

考题 下列程序的执行结果是______。 include float temp; floatfn2(float r) { temp= 下列程序的执行结果是______。include<iostream.h>float temp;floatfn2(float r){temp=r*r*3.14;return temp;}void main( ){float a=fn2(5.0);floatb=fn2(5.0);b=20;cout<<temp<<endl;}

考题 下列程序段的输出结果为()。includemain(){static char a[]="language"; char*p; p=a; 下列程序段的输出结果为( )。 #include<stdio.h> main() { static char a[]="language"; char*p; p=a; for(p=a;p<a+8;p+=2) putchar(*p); }A.languageB.lnugC.有语法错误D.lang

考题 以下程序的输出结果为______。 include main() { int m=7,n=4; float a=20.0,b=10.0,x; 以下程序的输出结果为______。 #include<stdio.h> main() { int m=7,n=4; float a=20.0,b=10.0,x; x=m/2+n*a/b+1/4; printf("%f\n",x); }A.11B.11C.11.25D.11.75

考题 以下程序的输出结果是【】。 include main() {struct stru {int a; float b; char d[4]; } 以下程序的输出结果是【 】。include<stdio.h>main(){ struct stru{ int a;float b;char d[4];};printf("%d\n",sizeof(struct stru));}

考题 阅读下列程序段,程序的输出结果为( )。A.3B.5C.6D.8

考题 以下程序的输出结果是( )。 int a=5; float x=3.14; a*=x*(‘E’ - ‘A’); printf(“%f\n”,(float)a);A.62.000000B.62.800000C.63.000000D.62

考题 下列程序段的输出结果是int a=1234;float b=123.456;double c=12345.54321;printf("%2d,%2.1f,%2.1f",a,b,c);A.无输出 B.12,123.5,12345.5 C.1234,123.5,12345.5 D.1234,123.4,12345.5

考题 下列程序段的输出结果为( )。 A=0 Print A+I A=3A.1B.-1C.3D.0

考题 下面程序输出的结果是( )。 include using namespace std; int test(int n1 下面程序输出的结果是( )。 #include<iostream> using namespace std; int test(int n1,int n2) {return n1 +n2;} float test (int f1,float f2){return f1-f2;} float test(float x,float y){return(x+y)/2;} float test(float x,int y){return(x+y)*2;} void main(){ int a1=10; float a2=2.5f; cout<<test(a1,a2); }A.12.5B.7.5C.6.25D.25

考题 以下程序段的输出结果是( )。 int a=1234; float b=123.456; double c=12345.54321; printf("%2d,%2.1f,%2.1f",a,b,c);A.无输出B.12,123.5,12345.5C.1234,123.5,12345.5D.1234,123.4,1234.5

考题 下列程序段的输出结果是_____。cout < < fixed < < 509.123456789 < < endl;

考题 以下程序段的输出结果是()。      struct node         {int a;  float b;  char c[10];}  printf(“%d”,sizeof(struet node)) ;

考题 下列程序段的输出结果为().   float k=0.8567;   printf("%4.1f%%",k*100);A、0085.6%%B、85.7%C、0085.6%D、.857

考题 语句“var_dump((float)false)”的输出结果为()。A、float(0.0)B、float(0)C、float(1)D、float(1.0)

考题 请读程序: #include void fun(float *pl, float *p2, float *s) { s=( float * )calloc( 1, sizeof(float)); *s=*p1+ *(p2++); } main( ) { float a[2]={1.1, 2.2}, b[2]={10.0, 20.0}, *s=a; fun(a, b, s) printf(""%f/n"",*s); } 上面程序的输出结果是()A、11.100000B、12.100000C、21.100000D、1.100000

考题 请读程序:#includevoidfun(float*pl,float*p2,float*s){s=(float*)calloc(1,sizeof(float));*s=*p1+*(p2++);}main(){floata[2]={1.1,2.2},b[2]={10.0,20.0},*s=a;fun(a,b,s)printf(""%f/n"",*s);}上面程序的输出结果是()A、11.100000B、12.100000C、21.100000D、1.100000

考题 填空题以下程序段的输出结果是()。      struct node         {int a;  float b;  char c[10];}  printf(“%d”,sizeof(struet node)) ;