A.It is 11 p.m. when the assistant manager of the hotel makes this phone call.
B.The neighbor is trying to get some sleep because he is very tired today.
C.The guest is holding a big party tonight.
D.The guest apologizes for the noise he has made.
第1题
以下程序的输出结果是______。 int fun(int*x,int*y) { static int m=4; m=*X+*y; *x-=m; *y+=m; return m; } main() { int a=2,b=6,n; n=fun(&a,&B) ;printf("%d,",n); n=fun(&a,&B) ; printf("%d\n",n); }
第2题
以下程序的输出结果是 【11】 。
int fun(int x,int y,int *p,int *q)
{ *p=x*y;
*q=x/y;}
main()
{int a,b,c,d;
a=4;b=3;
fun(a,b,&c,&d);
printf("%d,%d\n",c,d);}
第3题
下面程序的输出结果是______。
#include<stdio.h>
fun(int x)
{int p;
if(x==0||x==1)return(3);
p=x-f-un(x-2);
return p;
}
main()
{ printf("%d\n",fun(9));}
第4题
下述程序的输出结果是【 】。 include<stdio.h> int fun(int x) { int p; if(x==0||x==1) return 3; else p=x-fun(x-2); return p;} void main() {printf("\n%d",fun(9));}
第5题
有以下程序
#include<stdio.h>
int fun()
{static int x=1;
x+=1;return x;
}
main()
{int i,s=1;
for(i=1;i<=s;i++)s+=fun();
printf(”%d\n”,s);
}
程序运行后的输出结果是()。
A.11
B.21
C.6
D.120
第6题
第7题
以下程序的运行结果为________。 #include <stdio.h> int x=2; int fun(int p) { static int x=3; x+=p; printf("%d ",x); return (x); } int main() { int y=3; printf("%d \n",fun(fun(x))); }
第8题
下列程序的输出结果是______。
fun(int x)
{ static int a=5;
a+=x;
return(a);
}
main ()
{ int j,k=4;
for (j=1; j<=2; j++)
printf("%d\t", fun(k) ;
}
第9题
以下程序的输出结果是29,改正错误。
fun(int x,int y)
{x*x+y*y;}
main()
{int a;
a=fun(5,2);
printf("%d",a);
}
错误:______
改正:______
参考答案:错误
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!