A.鲁米诺
B.吖啶酯
C.三联吡啶钌
D.HRP
E.罗丹明
第1题
以下程序的输出结果是 【 11 】 。
#include <stdio.h>
int fun(int x)
{ static int t=0;
return(t+=x);
}
main()
{ int s,i;
for(i=1;i<=5;i++) s=fun(i);
printf("%d\n",s);
}
第2题
以下程序的输出结果是【 】。
include <stdio.h>
int fun(int x)
{ static int t=0;
return(t+=x);
}
main()
int s,i;
for(i=1 ;i<=5;i++) s=fun(i);
printf("%d\n",s);
第3题
以下程序的输出结果是 #include<stdio.h> in[fun(int n,int *s) {int n,f2; if(n==0‖n==1) *s=1; else {fun(n-1,&f1); fun(n-2,&f2); *s=f1+f2; }} void main() { int x; fun(6,&x); pfintf("\n%d",x);}
A.7
B.13
C.9
D.10
第4题
以下程序的输出结果是()。 #include<stdio.h> int fun(int n,int *s) { int f1,f2; if(n==0||n==1) *s=1; else { fun(n-1,&f1); fun(n-2,&f2); *s=f1+f2; } } void main() { int x; fun(6,&x); printf("\n%d" ,x);}
A.7
B.13
C.9
D.10
第5题
第6题
以下程序的输出结果是#include "stdio.h"int *fun(int *a,int *b){ int m; m=*a; m+=*b-3; return(&m);}main(){ int x=21,y=35,*a=&x,*b=&y; int *k; k=fun(a,b); printf("%d\n",*k);}
第7题
以下程序的输出结果是______。 #include <string.h> main() { char*a="abcdefghi";int k fun(a);puts(a); } fun(char*s) { int x,y; char c for(x=0,y=strlen(s)-1;x<y:x++,y--) {c=s[y];s[y]=s[x];s[x]=c;} }
A.ihgfedcba
B.abcdefghi
C.abcdedeba
D.ihgfefghi
第8题
试题11
以下程序运行后的输出结果是______.
#include <stdio.h>
void fun(int x)
{ if(x/5>0) fun(x/5)
printf(“%d”, x);
}
main()
{ fun(11); printf(“\n”);}
第9题
以下程序的输出结果是_______。 #include<string.h> main() {char*a="abcdefghi";int k; fun(a) ;puts(a) ; } fun(char *s) { int x,y; char c; for(x=0,y=strlen(s)-1; x<y; x++,y--) { c=s[y]; s[y]=s[x];s[x]=c;} }
A.ihgfedcba
B.abcdefghi
C.abcdedcba
D.ihgfefghi
第10题
#include
int fun()
{static int x=l:
X*=2:
return X:
}
main()
{int i,s=l:
for(i=l;i<=3,i++) s*=fun();
printf(“%d\n”,s);
}
程序运行后的输出结果是
A.0
B.10
C.30
D.64
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!