网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下列程序的运行结果是() include main() {int x=5,a=1,b=2,c=5,d=0; if(a
下列程序的运行结果是( )
#include<stdio.h>
main()
{ int x=5,a=1,b=2,c=5,d=0;
if(a<b)
if(b!=3)
if(!c)
x=1;
else
if(d) x=l;
else x=-1;
printf("%d",x);
}
A.-1
B.0
C.1
D.不确定的值
参考答案
更多 “ 下列程序的运行结果是() include main() {int x=5,a=1,b=2,c=5,d=0; if(a 下列程序的运行结果是( )#include<stdio.h>main(){ int x=5,a=1,b=2,c=5,d=0;if(a<b)if(b!=3)if(!c)x=1;elseif(d) x=l;else x=-1;printf("%d",x);}A.-1B.0C.1D.不确定的值 ” 相关考题
考题
下列程序的运行结果是()。includemain(){int x=5,a=1,b=2,c=5,d=0; if(a
下列程序的运行结果是( )。 #include<stdio.h> main() { int x=5,a=1,b=2,c=5,d=0; if(a<B) if(b!=3) if(!C) x=1; else if(D) x=1; else x=-1; printf("%d",x); }A.-1B.0C.1D.不确定的值
考题
下列程序的运行结果是()。includevoid fun(int*s,int*p){ static int t=3;*p=s[t];t--;
下列程序的运行结果是( )。#include<stdio.h>void fun(int*s,int*p){ static int t=3; *p=s[t]; t--;}void main(){ int a[]={2,3,4,5),k; int x; for(k=0;k<4;k++) { fun(a,x); printf("%d,",x); }}A.5,4,3,2B.2,3,4,5,C.2,2,2,2,D.5,5,5,5,
考题
下列程序的运行结果是()。 include voidfun(int*s,int*p) {static int t=3; *p=s[t]; t
下列程序的运行结果是( )。#include<stdio.h>voidfun(int*s,int*p){ static int t=3;*p=s[t];t--;}void main(){ int a[]={2,3,4,5},k;int x;for(k=0;k<4;k++){ fun(a,x);printf("%d,",x);}}A.5,4,3,2B.2,3,4,5,C.2,2,2,2,D.5,5,5,5,
考题
下列程序的运行结果是()。includevoid fun (int*s,int*p){ static int t=3; *p=s [t];
下列程序的运行结果是( )。 #include<stdio.h> void fun (int*s,int*p) { static int t=3; *p=s [t]; t--; } void main() int a[]={2, 3, 4, 5},k; int x; for(k=0; k<4; k++) { fun (a, x); printf("%d,", x); }A.5,4,3,2B.2,3,4,5,C.2,2,2,2,D.5,5,5,5,
考题
下列程序的运行结果是()。includevoid sub(int*s,int*y){static int m=4;*y=s[0];m++;}
下列程序的运行结果是( )。 #include<stdio.h> void sub(int*s,int*y) {static int m=4; *y=s[0]; m++; } void main() {int a[]={1,2,3,4,5},k; int x; printf("\n"); for(k=0;k<=4;k++) {sub(a,x); printf("%d,",x); } }A.1,1,1,1,1,B.1,2,3,4,5,C.0,0,0,0,0,D.4,4,4,4,4,
考题
下列程序的运行结果是()。includemain (){ int x=5, a=1, b=2, c=5, d=O ;if (a
下列程序的运行结果是( )。 #include<stdio.h> main () { int x=5, a=1, b=2, c=5, d=O ; if (a<b) if (b!=3) if (!c) x=1; else if(d)x=1; else x=-1; printf("%d",x); }A.-1B.0C.1D.不确定的值
考题
下列程序的运行结果是()。include main(){int a=2,b=3,c=4; if(a
下列程序的运行结果是( )。 #include <stdio.h> main() { int a=2,b=3,c=4; if(a<b) if(b<0) c=0; else c+=1; printf("%d\n", c); }A.2B.3C.5D.4
考题
下列程序的运行结果是()。includevoid sub(int*s,int*y){static int m=4:*y=s[m];m--;}
下列程序的运行结果是( )。 #include<stdio.h> void sub(int*s,int*y) {static int m=4: *y=s[m]; m--; } void main() {int a[]={1,2,3,4,5},k,x; printf("\n"); for(k=0;k<=4;k++) {sub(a,x); printf("%d,",x); } }A.5,4,3,2,1,B.1,2,3,4,5,C.0,0,0,0,0,D.4,4,4,4,4,
考题
下列程序的运行结果是()。includemain(){int a=2,b=3,c=4; if(a
下列程序的运行结果是( )。 #include<stdio.h> main() { int a=2,b=3,c=4; if(a<B) if(b<0) c=0; else c+=1; printf("%d\n",C) ; }A.2B.3C.5D.4
热门标签
最新试卷