执行以下程序后,a+b以及b的两倍的输出结果是多少?() main() { int a=1,b=0; printf("a+b=%d",b=a+b); printf("2*b=%d",2*b); }A.A) 1,2B.B) 0,0C.C)3,2D.D)不1,0

执行以下程序后,a+b以及b的两倍的输出结果是多少?() main() { int a=1,b=0; printf("a+b=%d",b=a+b); printf("2*b=%d",2*b); }

A.A) 1,2

B.B) 0,0

C.C)3,2

D.D)不1,0


参考答案和解析
A

相关考题:

有以下程序main(){ int a=0, b=0;a=10; /* 给 a 赋值b=20; 给 b 赋值 */printf("a+b=%d\n",a+b); /* 输出计算结果 */}程序运行后的输出结果是A)a+b=10B)a+b=30C)30D) 出错

有以下程序fun(int x, int y){ return (x+y); }main(){ int a=1, b=2, c=3, sum;sum=fun((a++,b++,a+b),c++);printf("%d\n",sum);}执行后的输出结果是A)6B)7C)8D)9

( 35 )有以下程序#include stdio.h#define SUB ( a ) ( a ) - ( a )main (){ int a=2,b=3,c=5,d;d=SUB ( a+b ) *c;printf ( " %d \ n " ,d ) ;}程序运行后的输出结果是A ) 0B ) -12C ) -20D ) 10

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

下列程序的输出结果是。void main(){int a=1,b=2; a=a+b;b=a-b;a=a-b; printf("%d,%d\n",a,b);}

有以下程序:includestdiO.hmain( ){int a=1,b=0;printf(%d,,b=a+b);printf(%d\n,a=2+b); ’}程序运行后的输出结果是( )。A.0,0B.1,3C.3,2D.1,2

有以下程序 main() {int a=0,b=0; a=10; /* 给a赋值 b=20; 给b赋值 */ printf("a+b=%d\n",a+b);/* 输出计算结果 */ } 程序运行后的输出结果是______。A.a+b=10B.a+b=30C.30D.出错

(36)有以下程序#include stdio.h#define PT 3.5;#define S(x) PT*x*x;main(){ int a=1, b=2; printf(“%4.1f\n”,S(a+b));}程序运行后输出的结果是A)14.0 B)31.5 C)7.5 D)程序有错无输出结果

以下程序运行后,输出结果是 #define PT 5.5 #define S(x)PT* x * x main() {int a=1,b=2; printf("%4.lf\n",S(a+b); }A.49.5B.9.5C.22D.45

下列程序执行后的输出结果是( )。void func(int*a,int b[]){ b[0]=*a+b;}main{ int a,b[5];a=0;b[0]=3;func(&a,b);printf(%d\n,b[0]); }A.6B.7C.8D.9

以下程序的输出结果是()。includemain(){int a=21,b=11; printf("%d\n",--a+b,--b+a);} 以下程序的输出结果是( )。 #include <stdio.h> main() { int a=21,b=11; printf("%d\n",--a+b,--b+a); }A.30B.31C.32D.33

有以下程序: #includestdio.h #define SUB(a)(a)-(a) main( ) {int a=2,b=3,c=5,d; d=SUB(a+b)*C; printf("%d\n",d); } 程序运行后的输出结果是( )。A.0B.-l2C.-20D.10

有以下程序: #includestdiO.h main( ) {int a=1,b=0; printf("%d,",b=a+b); printf("%d\n",a=2+b); ‘’ } 程序运行后的输出结果是( )。A.0,0B.1,3C.3,2D.1,2

下列程序的输出结果是______。 main() { int x=0,a=0,b=2; if(x=a+b) printf("****\n"); else printf("####\n"); }A.有语法错,不能通过编译B.通过编译,但不能连接C.****D.####

有以下程序includevoid main(){int a=1,b=0;printf("%d,",b=(a++)+(a++));pfintf("%d\ 有以下程序 #include<stdio.h> void main() { int a=1,b=0; printf("%d,",b=(a++)+(a++)); pfintf("%d\n",a+B); } 程序运行后的输出结果是( )。A.4,6B.2,5C.3,5D.2,6

有下列程序:fun(int x,inty){retum(x+y);}main(){int a=1,b=2,c=3,sum;stun=fun((a++,b++,a+b) ,c++);printf("%d\n",sum);} 执行后的输出结果是( )。A.6B.7C.8D.9

有以下程序 int fun(int x,int y){return(x+y);} main { int a=1,b=2,C=3,sum; sum=fun((a++,b++,a+b),c++ printf("%d\n",sum);) 执行后的输出结果是( )。A.6B.7C.8D.9

有以下程序: fun(int x,int y){return(x+y);) main { int a=1,b=2,c=2,sum; sum=fun((a++,b++,a+b),c++); printf("%d\n",sum); } 执行后的结果是( )。A.6B.7C.8D.9

有以下程序: fun(int x,int y){return(x+y);} main() {int a=1,b=2,c=3,Sum; sum=fun((a++,b++,a+b),c++); printf("%d",sum); } 执行后的输出结果是______。A.6B.7C.8D.9

以下程序运行后,输出结果是______。 #define PT 5.5 #define S(x) PT*x*x main() { int a=1,b=2;printf("%4.1 f\n",S(a+b)); }A.49.5B.9.5C.22D.45

下列程序执行后的输出结果是( )。 void func(int*a,int b[]) { b[0]=*a+b;}main { int a,b[5]; a=0.b[0]=3; func(&a,b);printf("%d\n",b[0]); }A.6B.7C.8D.9

有以下程序: main {int a=0,b=0; a=10; /*给a赋值 b=20; 给b赋值 */ printf("a+b=%d\n",a+b);//输出计算机结果 } 程序运行后的输出结果是( )。A.a+b=10B.a+b=30C.30D.出错

以下程序运行后的输出结果是()。      main( )  {int a=1,b=3,c=5;      if(c=a+b)     printf(“yes”);      else  printf(“not”);  }

以下程序运行后的输出结果是()。      main( )  {int a=010,b=2,c;      c=a+b;  printf(“%d”,c);      }

写出程序的运行结果。 #include main() { inta,b; scanf(”%d%d",a,b); if(++a=b) printf(”Yes”); printf("a+b=%d/n",a+b); } 如果输入:a=6,b=8,则输出结果是()。

填空题以下程序运行后的输出结果是()。      main( )  {int a=1,b=3,c=5;      if(c=a+b)     printf(“yes”);      else  printf(“not”);  }

填空题以下程序运行后的输出结果是()。      main( )  {int a=010,b=2,c;      c=a+b;  printf(“%d”,c);      }

单选题有以下程序:#include main(){ int a=1,b=0; printf(%d,,b=a+b); printf(%d,a=2*b);}程序运行后的输出结果是(  )。A0,0B1,0C3,2D1,2