[单选题]

执行C程序代码“int a=1; int b=0; int c=0; int d=(++a)*(c=1);”后,a、b、c、d的值分别为(29)。

A.2,0,1,2

B.1,0,1,1

C.2,0,1,1

D.2,0,0,2

参考答案与解析:

相关试题

执行C程序代码“int a=1;int b=0;int c=0;int d=(£

[单选题]执行C程序代码“int a=1;int b=0;int c=0;int d=(++a)*(c=1);”后,a、b、c、d的值分别为(29)。A.2,0,1,2B.1,0,1,1C.2,0,1,1D.2,0,0,2

  • 查看答案
  • 执行C程序代码“int a=1;int b=0;int c=0;int d=(£

    [单选题]执行C程序代码“int a=1;int b=0;int c=0;int d=(++a)*(c=1);”后,a、b、 c、d的值分别为(59)。A.2,0,1,2B.1,0,1,1C.2,0,1,1D.2,0,0,2

  • 查看答案
  • 执行 C 程序代码 “int a = 1; int b = 0; int c

    [单选题] 执行 C 程序代码“int a = 1; int b = 0; int c = 0; int d = (++a) * (c = 1);”后a, b, c, d 的值分别为 (59) 。A. 2,0,1,2B. 1,0,1,1C. 2,0,1,1D. 2,0,0,2

  • 查看答案
  • 若有程序fun(int a,int b}{static int c=0;c£«=

    [单选题]若有程序 fun(int a,int b} { static int c=0; c+=a+b; return c; } main() { int x=5,y=3,z=7,r, r=fun(y,x+y),z); r=fun(xy); printf("%d/n",r); } 上面程序的输出结果是_____。A.23B.15C.19D.18

  • 查看答案
  • 若有程序:fun(int a,int b){static int c=0;c£«

    [单选题]若有程序: fun(int a,int b) { static int c=0; c+=a+b: return c; } main() { int x=5,y=3,z=7,r; r=fun((y,x+y),z); r=fun(x,y); printf("%d/n",r); } 上面程序的输出结果是______。A.23B.15C.19D.18

  • 查看答案
  • 若有程序fun(int a,int b){ static int c=0 c£«

    [单选题]若有程序 fun(int a,int b) { static int c=0 c+=a+b; retum c; } main () { int x=5,y=3,z=7,r; r=fun((y,x+y),z); r=fun(x,y); printf("%d/n",r); } 上面程序的输出结果______。A.23B.15C.19D.18

  • 查看答案
  • 有以下程序:void swapl(int c0[],int c1[]){int

    [单选题]有以下程序: void swapl(int c0[],int c1[]) {int t; t=c0[0];c0[0]=c1[0];c1[0]=t; } void swap2(int*c0,int*c1) {int t; t=*c0;*c0=*c1;*c1=t; } main() {int a[2]={3,5),b[2]={3,5}; swapl(a,a+1);swap2(&b[0],&b[1]); printf("%d%d%d%d/n",a[0],a[1],b[0],b[1]); } 程序运

  • 查看答案
  • 有以下程序:void swapl(int c0[], int c1[]){int

    [单选题]有以下程序: void swapl(int c0[], int c1[]) {int t; t=co[o]; co[o]=o1[o]; c1[o]=t; } void swap2(int * c0, int * c1) {int t; t=*c0; *c0=*c1; *c1=t; } main() {int a[2]={3, 5}, b[2]=A{3, 5); swapl(a, a+1); swap2(&b [0], &b[1]); printf("%d%d%d%d/n",

  • 查看答案
  • 函数int test(int a,int b=1,int c=0),下列调用不合

    [单选题]函数int test(int a,int b=1,int c=0),下列调用不合法的个数是test(0); test(0,0);test();test(0,0,0);A.0B.1C.2D.3

  • 查看答案
  • 函数int test(int a,int b=1,int c:0),下列调用不合

    [单选题]函数int test(int a,int b=1,int c:0),下列调用不合法的个数是 test(0); test(0,0); test( ); test(0,0,0);A.0B.1C.2D.3

  • 查看答案
  • 执行C程序代码“int a=1; int b=0; int c=0; int d