下列程序段的输出结果是() int a=1234 ; float b=123. 456; double c=12345.54321; printf("%2d, %3.2f, %4.1f", a, b, c);A.无输出B.12, 123. 46, 12345.5C.1234, 123.46, 12345.5D.1234, 123.45, 1234.5

下列程序段的输出结果是() int a=1234 ; float b=123. 456; double c=12345.54321; printf("%2d, %3.2f, %4.1f", a, b, c);

A.无输出

B.12, 123. 46, 12345.5

C.1234, 123.46, 12345.5

D.1234, 123.45, 1234.5


参考答案和解析
1234

相关考题:

(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

以下程序段的输出结果是int a=1234;printf("%2d\n",a);A.12B.34C.1234D.提示出错、无结果

下面程序段的输出结果是()。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;printf ("-\n",a);

下列程序段的输出结果是: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

程序段int a=1234;printf("%d\n",a);的输出结果是()。 A.12B.34C.1234D.提示出错无结果

执行下列程序时输入:123456789,输出结果是()main(){ char s[100]int c,i;scan 执行下列程序时输入:123<空格>456<空格>789<回车>,输出结果是( ) main() { char s[100] int c,i; scanf("%c",C) ; scanf("%d",i); scanf("%s",s); printf("%c,%d,%s\n",c,i,s); }A.1,456,789B.1,23,456C.1,23,456,789D.123,456,789

执行下列程序时输入:123456789,输出结果是______。 mein(){char s[100]; int c 执行下列程序时输入:123<空格>456<空格>789<回车>,输出结果是______。 mein() { char s[100]; int c, i; scanf("% c", C) ; scanf("% d", i); scanf("% s", s); printf("% c, % d, % s\n", c, i, s); }A.123, 456, 789B.1, 456, 789C.1, 23, 456, 789D.1, 23, 456

下列程序的输出结果是()。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

以下程序段的输出结果是______。 int a=1234; printf("%2d\n",a);A.12B.34C.1234D.提示出错

以下程序的输出结果是【】。 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

执行下列程序时输入123456789,输出结果是 main() {cha 执行下列程序时输入123<空格>456<空格>789<回车>,输出结果是 main() {char s[100]; int c. i; scanf("%c", c); scanf("%d", i); scan{("%s", s); printf("%c, %d, %s\n", c,i,s); }A.123,456,789B.1,456.789C.1,23,456,789D.1,23,456

下列程序段的输出结果是( )。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);}

以下程序段的输出结果是()。      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

下列程序段的输出结果为().  float x=213.82631;   printf("%3d",(int)x);A、213.82B、213.83C、213D、3.8

单选题程序段:int x=12;double y=3.141593;printf(%d%8.6f,x,y);输出结果是(  )。A123.141593B123.141493C12,3.141593D123.1415930

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