下列程序的运行结果是( )。main(){int a=2,b=3,c=4;if(a<b)if0<0)c=0;elsec+=1;printf("%dh”,c);A.2B.3C.5D.4

下列程序的运行结果是( )。

main()

{int a=2,b=3,c=4;

if(a<b)

if0<0)c=0;

elsec+=1;

printf("%dh”,c);

A.2

B.3

C.5

D.4


相关考题:

下列程序的运行结果是()。 include main() {int a=2,b=3,c=4;ifa 下列程序的运行结果是( )。#include<stdio.h>main(){ int a=2,b=3,c=4;ifa<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[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,

有以下程序: void sum(int *A) {a[0]=a[1];} main() { int aa[10]={1,2,3,4,5,6,7,8,9,10},i; for(i=1;i>0;i--)sum(aa[i]); printf("%d\n",aa[0]); } 程序运行后的输出结果是______。A.4B.3C.2D.1

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

以下程序的运行结果是()。 main() {int a=2,b=-1,c=2 ; if(a<b) if(b<0)c=0; else c+=1; printf("%dn",c); }A.1B.0C.2D.3

【单选题】执行以下程序后,输出的结果是______。 include "stdio.h" main() {int a=2,b=-1,c=2; if(a<b)if(b<0) c=0; else c+=1; printf("%dn",c); }A.2B.1C.0D.3

【单选题】执行以下程序后,输出的结果是______。 #include "stdio.h" main() { int a=2,b=-1,c=2; if(a<b) if(b<0)c=0; else c+=1; printf("%dn",c); }A.0B.1C.2D.3