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

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

下列程序段的输出结果是:

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 ” 相关考题
考题 程序段int a=1234;printf("%d\n",a);的输出结果是()。 A.12B.34C.1234D.提示出错无结果

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

考题 以下程序段的输出结果是( )。 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("%2dn",a);A.12B.34C.1234D.无结果

考题 以下程序段的输出结果是(). int a=1234; printf("%2dn",a);A.12B.34C.1234D.无结果

考题 以下程序段的输出结果是() int a=1234; printf("%2dn",a);A.1234B.12C.34D.无结果

考题 以下程序段的输出结果是 int a=1234; printf("%2dn",a);A.12B.34C.1234D.无结果

考题 下列程序段的输出结果是()。 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, %3.2f, %4.1f", a, b, c);A.无输出B.12, 123. 46, 12345.5C.1234, 123.46, 12345.5D.1234, 123.45, 1234.5