题目内容

若程序中已给整型变量a和b赋值10和20,按以下格式输出a,b值的语句为printf("****a=%d,b=%d****",a,b); 。****a=10,b=20****

A. 对
B. 错

查看答案
更多问题

执行下列语句后的输出结果是46 。int x=46; printf("%2d",x);

A. 对
B. 错

执行以下程序时输入1234567,则输出结果是:12 34。#include main(){ int a=1,b; scanf("%2d%2d",&a,&b);printf("%d %d\n",a,b);}

A. 对
B. 错

#include void main(){ char c1,c2; c1=getchar(); c2=c1+32; printf("%c,%d\n",c2,c2);}以上程序在执行时输入:A(回车),则屏幕显示的是 b,97 。

A. 对
B. 错

int i=-200,j=2500;printf("(1)%d,%d,",i,j);printf("(2)i=%d,j=%d\n",i,j);上面程序段的输出结果有2行。

A. 对
B. 错

答案查题题库