网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
以下程序段的输出结果是( )。 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,1234.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 ” 相关考题
考题
(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
考题
以下程序的输出结果是______。 include int add(int x, int y) { return x+y; } doub
以下程序的输出结果是______。include<iostream.h>int add(int x, int y){return x+y;}double add(double x, double y){return x+y;}void main(){int a=3, b=3;double c=6.5, d=1.5;cout<<add(a, b)<<","<<add(c, d)<<end1;}
考题
下面程序段的输出结果是()。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
考题
main(){ float x=123.456; printf("%-5.2f\n",x);}以上程序输出的结果是______。A.123.4B.123.5C.123.45D.123.46
考题
下列程序段的输出结果是: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
考题
以下程序的输出结果是( )。 includefun(){ int a=0;a+=3;printf("%d",A); } main() {int
以下程序的输出结果是( )。include<stdio.h>fun(){ int a=0;a+=3;printf("%d",A);}main(){ int cc;for(cc=1;cc<=4;cc++)fun();printf("\n");}
考题
有以下程序:int sub(int n) { return(n/10+n%10); }main(){ int x, y;scanf("% d", x);y=sub(sub(sub(x)));printf("% d\n", y);}若运行时输入:1234<回车>,程序的输出结果是【 】。
考题
以下程序的输出结果是【】。 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
考题
下列程序段的输出结果是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 int add(int x,int y) { retum X+y; } dOuble ad
以下程序的输出结果是【 】。include<iostream.h>int add(int x,int y){retum X+y;}dOuble add(dOUble x,double y){return x+y;}void main(){int a=4,b=6;double c=2.6,d=7.4;cout<<add(a,b)<<",”<<add(C,d)<<endl;}
考题
下列程序段的输出结果是( )。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 x=102,y=012; printf("%2d,%2d\n",x,y);}执行后的输出
有以下程序: #include <stdio.h> main() { int x=102,y=012; printf("%2d,%2d\n",x,y); } 执行后的输出结果是( )。A.10,01B.02,12C.102,10D.02,10
考题
有以下程序: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
考题
(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);输出结果是( )。A
123.141593B
123.141493C
12,3.141593D
123.1415930
考题
填空题以下程序段的输出结果是()。 struct node {int a; float b; char c[10];} printf(“%d”,sizeof(struet node)) ;
热门标签
最新试卷