网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
下列程序的运行结果是()。includemain(){int a=0,b=4,c=0,d=10,x; if(a)d=d-10; elseif

下列程序的运行结果是( )。 #include<stdio.h> main() { int a=0,b=4,c=0,d=10,x; if(a) d=d-10; else if(!b) if(!c) x=15; else x=25; printf("%d\n",d); }

A.5

B.3

C.20

D.10


参考答案

更多 “ 下列程序的运行结果是()。includemain(){int a=0,b=4,c=0,d=10,x; if(a)d=d-10; elseif 下列程序的运行结果是( )。 #include<stdio.h> main() { int a=0,b=4,c=0,d=10,x; if(a) d=d-10; else if(!b) if(!c) x=15; else x=25; printf("%d\n",d); }A.5B.3C.20D.10 ” 相关考题
考题 下列程序的运行结果是() 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 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,

考题 下列程序的运行结果是()。 include main() {int a=0,b=4,c=0,d=10,x; if(a) d=d-10; e1 下列程序的运行结果是( )。#include<stdiO.h>main(){ int a=0,b=4,c=0,d=10,x;if(a)d=d-10;e1seif(!B)if(!C)x=15;elsex=25;printf("%d\n",D) ;}A.5B.3C.20D.10

考题 下列程序的运行结果是()。includemain(){ int a=0,b=4,c=0,d=10,x;if(a) d=d-10;else i 下列程序的运行结果是( )。 #include<stdio.h> main() { int a=0,b=4,c=0,d=10,x; if(a) d=d-10; else if(!b) if(!c) x=15; else x=25; printf("%d\n",d); }A.5B.3C.20D.10

考题 下列程序的运行结果是()。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,

考题 以下程序的输出结果是includestruct st{ int x;int *y;}*p;int dt[4]={10,20,30,40};s 以下程序的输出结果是 #include<stdio.h> struct st { int x;int *y;}*p; int dt[4]={10,20,30,40}; struct st aa[4]={50,dt[0],60,dt[0],60,dt[0],60,dt[0],}; main() { p=aa; printf("%d\n",++(p->x));}A.10B.11C.51D.60

考题 以下程序的输出结果是()。includestruct st{int x;int*y;}*p; int dt[4] ={ 10,20,30,4 以下程序的输出结果是( )。 #include<stdio.h> struct st { int x; int *y;} *p; int dt[4] ={ 10,20,30,40 }; struct st aa[4]={ 50,dt[0],60,dt[0],60,dt[0],60,dt[0]}; main() { p=aa; printf("%d\n",++(p->x)); }A.10B.11C.51D.60

考题 以下程序运行时的输出结果是_____________ 。 #include <stdio.h> void main () { int a,b,c,d; a=c=0; b=1; d=20; if (a) d=d-10; else if (!b) if (!c) d=15; else d=25; printf ("%d", d ); }