题目内容

有以下程序#include main(){ int x,y; scanf("%2d%3d",&x,&y); printf("%d\n",x+y);}程序运行时输入:1234567,则程序的运行结果是357。

A. 对
B. 错

查看答案
更多问题

假设有 int k=1234,则printf("%d\n",k)的输出结果是1234 。

A. 对
B. 错

有以下程序(说明:字符0的ASCII码值为48)#include main(){ char c1,c2; scanf("%d",&c1); c2=c1+9; printf("%c%c\n",c1,c2);}若程序运行时从键盘输入48<回车>,则输出结果为4857。

A. 对
B. 错

有定义int x=-2;则语句printf("%d",x);的输出结果为-2。

A. 对
B. 错

有定义float x=123.456; 则语句printf("%f",x); 的输出结果为123.456。

A. 对
B. 错

答案查题题库