选择题

有如下程序段:

int x=12;

double y=3.141593;

printf("%d%8.6f'' x, y); 

其输出结果是(      )。

【正确答案】 A
【答案解析】

x和y之间没有间隔符,%8.6f表示占据8个字符,小数点后有6位,所以答案 为A)。