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

题目内容 (请给出正确答案)

以下程序段的输出结果为() int a=0,b=0,c=0; if(a==b+c) printf(“*** ”); else printf(“$$$ ”);

A.有语法错误,不能通过编译

B.可以通过编译但不能通过连接

C.输出***

D.输出$$$


参考答案和解析
B
更多 “以下程序段的输出结果为() int a=0,b=0,c=0; if(a==b+c) printf(“*** ”); else printf(“$$$ ”);A.有语法错误,不能通过编译B.可以通过编译但不能通过连接C.输出***D.输出$$$” 相关考题
考题 以下程序的输出结果是 【 17 】 。int fun(int *x,int n){ if(n==0) return x[0];else return x[0]+fun(x+1,n-1);}main( ){ int a[]={1,2,3,4,5,6,7}; printf("%d\n",fun(a,3));}

考题 以下程序的输出结果是______nt fun(int*x,int n){if(n==0)return x[0];else return x[0]+fun(x+1,n-1);}main(){int a[]={1,2,3,4,5,6,7};printf(“%d\n”,fun(a,3));}

考题 请阅读以下程序:main(){ int a=5,b=0,c=0;if(a=b+c)printf("***\n");else printf("$$$\n");}以上程序A.有语法错不能通过编译B.可以通过编译但不能通过连接C.输出***D.输出$$$

考题 以下程序的输出结果是()。includemain(){int a=-1,b=1,k; if((++a 以下程序的输出结果是( )。 #include <stdio.h> main() { int a=-1,b=1,k; if((++a<0)! (b-- <=0)) printf("%d %d\n",a,b); else printf("%d %d\n",b,a); }A.-1 1B.0 1C.1 0D.0 0

考题 下程序( )。 main( ) { int x1=3, x2=0, x3=0; if (x1=x2+x3) printf("* * * *"); else printf(" "); } A.输出:* * * *B.输出:# # #C.#存在语法错误D.无输出结果

考题 下面程序的输出结果是( )。main(){int i=0,a=0;while(i<20){ for(;;){ if((i%10)==0)break;else i--;}i+=11;a+=i;}printf("%d\n",A);}

考题 以下程序的输出结果是( )。 include void fun(int x) {if(x/2>0)fun(x/2); printf("%d", 以下程序的输出结果是( )。include<stdio.h>void fun(int x){ if(x/2>0)fun(x/2);printf("%d",x);}main(){fun(3);printf("\n");}

考题 以下程序的输出结果是( )。 includefun(){ int a=0;a+=3;printf("%d",A); } main() {int 以下程序的输出结果是( )。include<stdio.h>fun(){ int a=0;a+=3;printf("%d",A);}main(){ int cc;for(cc=1;cc<=4;cc++)fun();printf("\n");}

考题 以下程序运行后的输出结果是( )。 include main() { int x=20; printf("%d", 0 以下程序运行后的输出结果是( )。include<stdio.h>main(){ int x=20;printf("%d", 0<x<20);printf("%d\n", 0<x x<20);}

考题 有以下程序#inclUdestdio.hmain(){int x=1。y=0;if(!x)y++;else if(x==0)if(x)y+=2;else y+=3; .printf(“%d\n”,y);}程序运行后的输出结果是A.3B.2C.1D.0

考题 以下程序的输出结果是#include conio.h#include stdio.h#define M 100void fun(int m, int *a, int *n){ int i,j=0; for(i=1;i=m;i++) if(i%7==0||i%11==0) a[j++]=i; *n=j;}main(){ int aa[M],n,k; clrscr(); fun(100,aa,n); for(k=0;kn;k++) if((k+1)%20==0)printf("\n"); else printf("%d",aa[k]); printf("\n"); }

考题 若有以下程序main(){ int p=5,a=5; if(p=1!=0) printf("%d\n",p); else printf("%d\n",p+2);}程序执行后的输出结果是

考题 以下程序的输出结果是_______。 main() { int a=-1,b=1,k; if(++a<0)!(b-<=0)) printf("%d %d\n",a,b) ; else printf("%d %d\n",b,a) ; }A.-1 1B.0 1C.1 0D.0 0

考题 有以下程序#includemain(){ int x=1,y=0;if(!x) y++;else if(x==0)if (x) y+=2;else y+=3;printf(%d\n,y);}程序运行后的输出结果是A.3B.2C.1D.0

考题 有以下程序:#includemain{ int i=0,a=0;while(i20){ for(;;){ if((i%10)==0) break;else i--;}i+=11;+=i;}printf(%d\n,a);}程序的输出结果是( )。A.62B.63C.33D.32

考题 下列程序的输出结果是()。includemain(){ int a=2,b=3,p;p=f(a,b);printf("%d",p);}int 下列程序的输出结果是( )。 #include<stdio.h> main() { int a=2,b=3,p; p=f(a,b); printf("%d",p); } int f(a,b) { int c; if(a>b)c=1; else if(a==b)c=0; else c=-1; return(c) ; }A.-1B.0C.1D.2

考题 有以下程序#includestdio.hmain(){ int a=1,b=0;if(--a)b++;else if(a==0) b+=2;else b+=3:printf("%d\n",b);}程序运行后的输出结果是A.0B.1C.2D.3

考题 下列程序的输出结果为______。 main ( ) { int p, y=0, x=0; p=x>8; printf("%d",p); p+ 下列程序的输出结果为______。 main ( ) { int p, y=0, x=0; p=x<<8 | ~y>>8; printf("%d ",p); p+=(p+=2); printf("%d\n",p); }A.-1 0B.0 0C.0 4D.-1 2

考题 有以下程序#includestdio.hmain( ){int a=1,b=0if(!a)b++;else if(a==0)if(a)b+=2else b+=3printf(”%d\n”,b);}程序运行后的输出结果是( )。A.0B.1C.2D.3

考题 对于以下程序段,设a和q都是整型变量, ┇ a=q; Loop:if(a==0)goto End; Else if(a>0){printf("");a--;goto Loop;} Else goto End; End; ┇ 不能与上面程序等价的是( )A.a=q; do { f(a<0)break; a--;printf("*"); }while(a) ;B.a=q; for(;a>0;a--)printf("");C.a=q; while(a) {printf("");a--;}D.for(a=q;a>0;--a,printf("*"));

考题 以下程序的输出结果是()includemain(){ int i=0,a=0;while(i 以下程序的输出结果是( ) #include<stdio.h> main() { int i=0,a=0; while(i<20) { for(;;){if((i%10)==0)break;else i--;} i+=11;a+=i; } printf("%d\n",A) ; }A.21B.32C.33D.11

考题 以下程序的输出结果是( )。includemain()int i=0,a=0;while(i 以下程序的输出结果是( )。#includemain()int i=0,a=0;while(ifor(;;)if((i%10)==0)break;else i--;i+=11;a+=I;printf("%d\n",a);A.21B.32C.33D.11

考题 下列程序的输出结果是______。main(){ int a=-1,b=1,k; if((++a<0) ! (b--<=0)) printf("%d %d\n",a,b); else printf("%d %d\n",b,a);}A.-1 1B.0 1C.1 0D.0

考题 以下程序的输出结果是( )。 include fun() {static int a=0; a+=3;printf("%d",A); } ma 以下程序的输出结果是( )。 include<stdio.h> fun() {static int a=0; a+=3;printf("%d",A); } main() {int cc; for(cc=1;cc<5;cc++)fun(); printf("\n"); }

考题 试题18有以下程序#include stdio.hmain(){ int a=1,b=0;if(- -a) b++;else if(a= =0) b+=2;else b==3;printf(“%d\n”, b);}程序运行后的输出结果是()A.0B.1C.2D.3

考题 以下程序段的输出结果为().  char c[]="abc";  int  i=0;  do while(c[i++]!=’/0’);printf("%d",i-1);A、abcB、abC、2D、3

考题 单选题有以下程序:#include main(){ int x=1,y=0; if(!x)y++; else if(x==0) if(x)y+=2;  else y+=3; printf(%d,y);}程序运行后的输出结果是(  )。A 3B 2C 1D 0

考题 单选题有如下程序:#include main(){ int a =0,b=1; if(++a==b++)  printf(T); else  printf(F); printf(a=%d,b=%d,a,b); printf();}程序运行后的输出结果是(  )。A Ta=0,b=1B Fa=1,b=2C Ta=1,b=2D Fa=0,b=2