题目内容

执行语句printf("The program's name is c:\tools\book.txt");后的输出是__________ .

A. The program's name is c:\ toolook.txt
B. The program's name is c:\\ tools book.txt
C. The program's name is c: oolook.txt
D. The program's name is c: tools book.txt

查看答案
更多问题

若x是int型变量,y是float型变量,所用的scanf调用语句格式为scanf("%d,%f",&x,&y);则为了将数据10和66.6分别赋值给x和y,正确的输入应当是________ .代表回车.

A. x=10〈CR〉y=66.6〈CR〉
B. 10,66.6〈CR〉
C. 66.6,10〈CR〉
D. x=10,y=66.6〈CR〉

若有定义int x,y ; double z ;,则以下不合法的scanf函数调用语句为________ .

A. scanf("%x%o%6.1f",&x,&y,&z);
B. scanf("%x %o%6f",&x,&y,&z);
C. scanf("%2d%d%lf",&x,&y,&z);
D. scanf("%d,%x,%lf",&x,&y,&z);

设a,b均为int型变量,则以下不正确的函数调用为________ .

A. putchar('\'');
B. scanf("%d
C. %d",&a,&b);
D. putchar('\18');
E. getchar();

下列程序正确的运行结果为________#include "stdio.h" main(){printf("%dd",NULL); }

A. 不确定值(因变量无定义)
B. 1d
C. 0d
D. 0

答案查题题库