[单选题]

请读程序: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.11

B.20

C.21

D.31

参考答案与解析:

相关试题

请读程序:#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

  • 查看答案
  • 请读程序:includemain(){ int a;float b,c; sca

    [单选题]请读程序:includemain(){ int a;float b,c; scanf("%2d%3t%4f",&a,&b,&c); printf("/na请读程序:include<stdio.h>main(){ int a;float b,c; scanf("%2d%3t%4f",&a,&b,&c); printf("/na=%d,b=%f,c=%f/n",a,b,c);}若运行时从键盘上输入(图片),则上面程序的输出结果是______。A.a=98,b=765,c=4321B.a

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

    [单选题]请读程序:includemain(){int a;float b,c;scanf("%2d%3f%4f",&a,&b,&c) ;请读程序: #include<stdio.h> main() { int a;float b,c; scanf("%2d%3f%4f",&a,&b,&c) ; printf("/na=%d,b=%f,c=%f/n",a,b,c) ; } 若运行时从键盘上输入9876543210,↓,则上面程序的输出络果是___

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

    [单选题]请读程序:includemain(){int a;float b,c;scanf("%2d%3f%4f",&a,&b,&c);p请读程序: #include<stdio.h> main() { int a;float b,c; scanf("%2d%3f%4f",&a,&b,&c); printf("/na=%d,b=%f,c=%f/n",a,b,c) } 若运行时从键盘上输入987643210则上面程序的输出结果是______。A.a

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

    [单选题]请读程序:include main(){int a; float b, c;scanf ("% 2d% 3%£¯4f",&a,&b,&a请读程序:#include <stdio. h>main(){ int a; float b, c; scanf ("% 2d% 3%/4f",&a,&b,&c); printf("/na=%d, b=%f, c=%f/n", a, b, c);} 若运行时从键盘上输入9876543210,则上面程序的输出结果

  • 查看答案
  • 请读程序:#include f(int b[],int n){int i,r;r

    [单选题]请读程序:#include f(int b[],int n){int i,r;r=1;for(i=0;i<=n;i++)r=r*b[i];return r;}main(){int x,a[]={2,3,4,5,6,7,8,9};x=f(a,3);printf("%d/n",x);}上面程序的输出结果是()A . 720B . 120C . 24D . 6

  • 查看答案
  • 请读程序:#includemain(){int a=5,b=7,c=9;pint

    [单选题]请读程序:includemain(){int a=5,b=7,c=9;pintf("%d,%d,"a,b,C) ;printf("%d,%d",a,D)请读程序: #include<stdio.h> main() { int a=5,b=7,c=9; pintf("%d,%d,"a,b,C) ; printf("%d,%d",a,D) ; } 上面程序的输出结果是_______。A.5,7,9,5,7B.5,7,5,7C.5,7,不定7,9D.5,7,5,7,不定

  • 查看答案
  • 阅读下面程序:#includefun(int a,int b){int c;c=

    [单选题]阅读下面程序: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.11B.20C.21D.

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

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