[单选题]

阅读下面程序:includefun(int a,int b){int c;c=a£«b;return c;}void main(){int x=

阅读下面程序: #include<iostream.h> fun(int a,int b) { int c; c=a+b; return c; } void main() { int x=6,y=7,z=8,r; r=fun((x--,y++,x+y),z--); cout<<r<<endl; } 则该程序的输出结果是( )。

A.11

B.20

C.21

D.31

参考答案与解析:

相关试题

阅读下面程序:#include fun (int a, int b){int c

[单选题]阅读下面程序:include fun (int a, int b){int c;c=a£«b;return c;}void main(){int阅读下面程序:#include <iostream.h>fun (int a, int b){int c;c=a+b;return c;}void main(){int x=6, y=7, z=8, r;r=fun( (x--, y++, x+y), z--);cout<<r<<end1;}则该程序的输出结果是( )。A.11B.20C.21D.31

  • 查看答案
  • 请读程序:#includefunc(int a, int b){int c; c

    [单选题]请读程序:includefunc(int a, int b){int c; c=a£«b; return c;}main(){int x=6,y=7,z=请读程序: #include <stdio.h> func(int a, int b) { int c; c=a+b; return c; } main() { int x=6,y=7,z=8,r; r=func((x--,y++,x+y),z--); printf("%d/n",r); 上面程序的输出结果是( )。A.11B.20C.21

  • 查看答案
  • 若有程序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

  • 查看答案
  • 请读程序:#includefunc(int a,int b) { int c;

    [单选题]请读程序:includefunc(int a,int b) { int c; c=a£«b; return c;}main(){ int x=6,y=7,请读程序: #include<stdio.h> func(int a,int b) { int c; c=a+b; return c; } main(){ int x=6,y=7,z=8,r, r=func((x-,y++,x+y),z-); printf("%d/n",r); } 上面程序的输出结果是_______。A.11B.20C.2

  • 查看答案
  • 若有如下程序:sub(int a,int b,int c){c=a£«b;ret

    [单选题]若有如下程序: sub(int a,int b,int c) { c=a+b; return(c);} main() {int x=3,y=4,z=6; sub(x,y,z); printf('%d”,z); } 则程序运行后的输出结果是( )。A.3B.6C.7D.4

  • 查看答案
  • 执行 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

  • 查看答案
  • 执行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

  • 查看答案