以下程序段的输出结果是( )。 int a=1234; float b=123
题型:单项选择题
问题:
以下程序段的输出结果是( )。
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.5
C.1234,123.5,12345.5
D.1234,123.4,1234.5