有以下程序#include<stdio.h>main(){int a=7; while(a--); printf("%d\n",a);}程序运行后
有以下程序
#include<stdio.h>
main()
{ int a=7;
while(a--);
printf("%d\n",a);
}
程序运行后的输出结果是
A.-1
B.0
C.1
D.7
有以下程序
#include<stdio.h>
main()
{ int a=7;
while(a--);
printf("%d\n",a);
}
程序运行后的输出结果是
A.-1
B.0
C.1
D.7
有以下程序: #include <stdio. h > main() { int m =3,n =4,x; x= -m++; x=x+8/++n; prinff(" % d \n" ,x); } 程序运行后的输出结果是()。
A.3
B.5
C.-1
D.-2
A.=0
B.=1
C.=2
D.=3
有以下程序 #include<stdio.h> main {int y=9; for(;y>0;y--) if(y%3==0)printf("%d",--y); } 程序的运行结果是()。
A.741
B.963
C.852
D.875421
有以下程序: include<stclio.h> main() { char c; while((c=getchar())!=?)putchar(--c); } 程序运行时,如果从键盘输入:Y?N?<回车>,则输出结果为【 】。
有以下程序: #include<stdio.b> void fun(char c) { if(c>X)fun(c-1): printf("%C",c); } traia() { fun(z);} 程序运行后的输出结果是()
A.xyz
B.wxyz
C.xzy
D.zvx
有以下程序 include<stdio.h> intfun(){ staticintx=1; x+=1: returnx;} main(){ inti,s=1; for(i=1;i<=5;i++)s+=fun(); printf(%d\n,s);} 程序运行后的输出结果是
A.11
B.21
C.6
D.120
有以下程序: #include <stdio.h> main() { int x=3,y=2,z=1; printf("%d\n",x/y&~z); 程序运行后的输出结果是()。
A.3
B.2
C.1
D.0
有以下程序
#include<stdio.h>
main()
{ char ch[3][5]=("AAAA","BBB","CC");
printf("%s\n",ch[1]);
}
程序运行后的输m结果是
A.AAAA
B.CC
C.BBBCC
D.BBB
有以下程序#include <stdio.h>main() { int x=1, y=2, z=3; if(x>y) if(y<z) printf("%d", ++z); else printf("%d", ++y); printf("%d\n", x++);}程序的运行结果是A.331 B.41 C.2 D.1
有以下程序
#include<stdio.h>
#define S(x)4*(x)*x+1
main()
{int k=5,j=2;
printf(“%d\n”,S(k+j));
}
程序运行后的输出结果是
A.197
B.143
C.33
D.28