问题
单项选择题
下面的程序运行后输出为( )。
#include <stdio.h>
# include <math.h>
main()
int a,b;
float c;
b = 5;c = 6;c = b+7;b = c+1;
a = sqrt((double)b+c);
printf("%d,%f,%d",a+6,C,b);
A.11.000000,12.0000000,13.000000
B.11.000000,12.000000,13
C.11.0000000,12,13
D.11,12.000000,13
答案
参考答案:D
解析: 输出函数中a+6,b要求按整数形式输出,所以选项D正确。