下列程序段的输出结果是()。 int a=1234; float b=123.456; double c=12345.54321; printf("%2d,%2.1f,%2.1fn",a,b,c);A.无输出B.12,123.5,12345.5C.1234,123.5,12345.5D.1234,123.4,1234.5
下列程序段的输出结果是()。 int a=1234; float b=123.456; double c=12345.54321; printf("%2d,%2.1f,%2.1fn",a,b,c);
A.无输出
B.12,123.5,12345.5
C.1234,123.5,12345.5
D.1234,123.4,1234.5
参考答案和解析
C
相关考题:
(15)程序段:int x=12; double y=3.141593; printf(“%d%8.6f”,x,y);的输出结果是A)123.141593 B)12 3.141593 C)12,3.141593 D)123.141593
下面程序段的输出结果是()。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
下列程序段的输出结果是: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
下列程序的输出结果是()。includemain(){double d=3.2;int x,y; x=1.2;y=(x+3.8)/5.0; 下列程序的输出结果是( )。 #include <8tdio.h> main() { double d=3.2; int x,y; x=1.2;y=(x+3.8)/5.0; printf("%d\n",d*y); }A.3B.3.2C.0D.3.07
以下程序的输出结果是【】。 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));}
以下程序的输出结果是( )。 int a=5; float x=3.14; a*=x*(‘E’ - ‘A’); printf(“%f\n”,(float)a);A.62.000000B.62.800000C.63.000000D.62
下列程序段的输出结果是( )。 void fun(int *x,int *y) { printf("%d%d",*x,*y);*x=3;*y=4; } main() { int x=2,y=1; fun(y,x); printf("%d%d",X,y); }A.1243B.1212C.1234D.2112
下列程序段的输出结果是includevoid fun(int * x,int * y){cout 下列程序段的输出结果是 #include<iostream.h> void fun(int * x,int * y) { cout << * X << * y; *X=3; *y=4; } void main() { int x=1,y=2; fun(y,x); cout << X << y<<endl; {A.2143B.1212C.1234D.2112
下列程序段的输出结果是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
下列程序段的输出结果是( )。include void fun(int *x, int *y) { printf("%d %d ", *x,*y); *x=3;*y=4;}main() { int x=1,y=2; fun( printf("%d %d\n",x,y); } A、2143B、1212C、1234D、2112
程序段:int x=12;double y=3.141593;printf(”%d%8.6f”,x,y.;的输出结果是( )。A.123.141593SX 程序段:int x=12;double y=3.141593;printf(”%d%8.6f”,x,y.;的输出结果是( )。A.123.141593B.12 3.141593C.12,3.141593D.123.1415930
有以下程序:includemain(){int a;char c=10; float f=100.0;double x; a=f/=c*=(x=6.5 有以下程序: #include <stdio.h> main() { int a; char c=10; float f=100.0; double x; a=f/=c*=(x=6.5); printf("%d%d%3.1f%3.1f\n",a,c,f,x); } 程序运行后的输出结果是( )。A.1 65 1 6.5B.1 65 1.5 6.5C.1 65 1.0 6.5D.2 65 1.5 6.5
以下程序段的输出结果是( )。 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 main() { double d=3.2;int x,y; x=1.2;y=(x+3. 下列程序的输出结果是______。 #include<stdio.h> main() { double d=3.2;int x,y; x=1.2;y=(x+3.8)/5.0; printf("%d\n",d*y); }A.3B.3.2C.0D.3.07
下列程序运行时输入1234567,则输出结果是______。includemain(){ int a=1,b;scanf(" 下列程序运行时输入1234567<CR>,则输出结果是______。include<stdio.h>main(){ int a=1,b;scanf("%2d%2d",a,b);printf("%d %d\n", a,b);}
(6)以下程序运行后的输出结果是 【6】 。#include stdio.hmain(){ int a;a=(int)((double)(3/2)+0.5+(int)1.99*2);printf("%d\n",a);}
单选题程序段:int x=12;double y=3.141593;printf(%d%8.6f,x,y);输出结果是( )。A123.141593B123.141493C12,3.141593D123.1415930
单选题有如下程序:#includeint sub(double a,double b){ return(int)(a-b-1.3);}main(){ printf(%d,sub(3.2,4.1));}程序运行后的输出结果是( )。A-2B1.7C-3D2.0