单项选择题

程序段: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
<上一题 目录 下一题>
热门 试题

单项选择题
设变量已正确定义,以下不能统计出一行中输入字符个数(不包含回车符)的程序段是
A.n=0; while(( ch=getchar())!='\n') n++;
B.n=0; while( getchar()! ='\n') n++;
C.for( n=0; getehar()!='\n'; n++);
D.n=0; for( ch=getchar(); ch!='\n'; n++);
单项选择题
以下程序运行后的输出结果是 #include<stdio.h> #define PT 3.5; #define S(x) PT*x*x; main() { int a=1, b=2; printf( %4.1f n , S(a+b)); }
A.14.0
B.31.5
C.7.5
D.程序有错,无输出结果
相关试题
  • 有以下程序,若想通过键盘输入,使得a1的...
  • 以下程序运行后的输出结果是 #include<s...
  • 设有定义:char s[81]; int i=1...