题目内容

若m为float型变量,则执行以下语句后的输出为_________ .m=1234.567;printf("%-9.3f",m);printf("%9.3f\n",m);

A. -1234.123001234.123
B. 1234.567 1234.567
C. 1234.45601234.456
D. 1234.15671234.567

查看答案
更多问题

若有类型定义int k=017,g=21;则下列语句的输出为________.printf("%d,",++k);printf("%x\n",g++);

A. 15,6f
B. 15,71
C. 16,15
D. 17,6f

若x为unsigned int型变量,则执行以下语句后x的值为_________ .x=65535; printf("%d\n",x);

A. -1
B. 无定值
C. 1
D. 65535

若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

答案查题题库