执行下面语句后的输出结果为()。int i = -1;if (i < =0)printf(“****\n”);i = 2;else printf(“%%%%\n”)
A.[A] ****
B.[B] %%
C.[C] %%%%
D.[D] 有语法错误。不能正确执行
D、[D] 有语法错误。不能正确执行
A.[A] ****
B.[B] %%
C.[C] %%%%
D.[D] 有语法错误。不能正确执行
D、[D] 有语法错误。不能正确执行
有定义int m=O,x=2,y=4,z=3;则下列语句执行后输出结果为______。
m=x;
if(z>y)
if(z>x)
m=z;
else
if(y>x)
m=y;
printf("m=%d",m);
阅读下面语句,则执行后的输出结果为【 】。 include"stdio.h" main() { char a,b; for(a=0,b=9;a<b;a++,b--) printf("%c%c",a,b); printf("\n");}
设当前日期为2007年12月27日,星期四,则执行下面语句后的输出结果为______。 Print Day(Now) Print Month(Now) Print Year(Now) Print Weekday(Now)
A.65
B.20
C.15
D.10
程序填空题:执行下面程序的输出结果为()。
#include
void main() {
int x=36,y=48,z;
do {z=x%y; x=y; y=z;} while(y>0); .
printf("x=%d/n",x);
}
A.123412312
B.12341234123412341231231231212
C.1234+1234+1234
D.1234+123+12
程序填空题:执行下面程序的输出结果为()。
#include
void main(){
int
x=48,y=30,Z;
do{z=x%y;x=y;y=z;}while(y>0);
for(i=1;i<=5;i++)s+=i*|;
printf("x=%d/n",x)
}
以下程序执行后的输出结果为______。
main ()
{ int a=4,b=3,c=5,t=0;
if(a<b) {t=a;a=b;b=t;}
if(a<c) {t=a;a=c;c=t;}
printf("%d %d %d\n",a,b,c);
}