若x,y均为int型变量,则执行以下语句后的结果为_________ .x=025;y=0x25;printf("%2d%2d\n",x,y);
A. 1325
B. 1321
C. 2137
D. 1525
查看答案
执行语句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();