首页 > 大学专科> 电子信息
题目内容 (请给出正确答案)
[主观题]

阅读下面程序,在程序执行后的结果为()。 include“stdi0.h” int*fun(int*a,int*b) { int m

阅读下面程序,在程序执行后的结果为()。 include“stdi0.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); )

A.53

B.2l

C.35

D.14

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“阅读下面程序,在程序执行后的结果为()。 include“s…”相关的问题
第1题
阅读下面程序,执行后的结果为()。 include“stdio.h” void fun(int*a,int*b) { int k; k=

阅读下面程序,执行后的结果为()。 include“stdio.h” void fun(int*a,int*b) { int k; k=5; *a=k; *b=*a+k; ) main() { int*a,*b,x=10,y=15; a=&x; b=&y, fun(a,b); printf(“%d,%d\n”,*a,*b); }

A.10,15

B.5,15

C.5,10

D.15,10

点击查看答案
第2题
阅读下面程序段,则执行后的结果为()。 include“stdio.h” void main() { int m=4,n=2,k;

阅读下面程序段,则执行后的结果为()。 include“stdio.h” void main() { int m=4,n=2,k; int fun(int,int); k=fun(m,n); printf(“%d\n”,k); } int fun(int m,int n) { return(m*m*m—n*n*n); }

A.64

B.8

C.56

D.0

点击查看答案
第3题
阅读下面程序,则程序的执行结果为【 】。 include"stdio.h" main() { int

阅读下面程序,则程序的执行结果为【 】。 include"stdio.h" main() { int a=30,b=20,z; z=fun(a+b,a-b); printf("%d\n",z);} fun(int a,int b) { int z; z=a/b; return z;}

点击查看答案
第4题
阅读下面程序,则程序的执行结果为【 】。 include"stdio.h" fun(int k,int*p) { int

阅读下面程序,则程序的执行结果为【 】。 include"stdio.h" fun(int k,int*p) { int a,b; if(k==1‖k==2) *p=1; else{ fun(k-1,&a); fun(k-2,&b); *p=a+b; } } main() { int x; fun(6,&x); printf("%d\n",x);}

点击查看答案
第5题
阅读下面程序,则执行后的输出结果是【 】。 include "stdio.h" main() { int x,y,z;

阅读下面程序,则执行后的输出结果是【 】。 include "stdio.h" main() { int x,y,z; x=1;y=2;z=3; if(x>y)if(x>z)printf("%d",x); else printf("%d",y); printf("%d\n",z);}

点击查看答案
第6题
阅读下面程序段,则执行后输出的结果是()。 include“stdio.h” void main() { char fun

阅读下面程序段,则执行后输出的结果是()。 include“stdio.h” void main() { char fun(char,int); char a;‘A’; int b=13; a=fun(a,b); putchar(a); ) char fun(char a,int b) { char k; k=a+b; return k; )

A.A

B.M

C.N

D.L

点击查看答案
第7题
下面程序执行后的结果为()。 include“stdio.h” testl() { int x=0; x++; return x;

下面程序执行后的结果为()。 include“stdio.h” testl() { int x=0; x++; return x; } test2() { static int x=0; x++; return x; } void main() { int i,m,n; for(i=0;i<3;i++) { m=testl(); n=test2(); } printf(“%d,%d\n”,m,n); )

A.1,1

B.1,3

C.3,1

D.3,3

点击查看答案
第8题
阅读下面语句,则执行后的输出结果为【 】。 include"stdio.h" main() { char a,b;

阅读下面语句,则执行后的输出结果为【 】。 include"stdio.h" main() { char a,b; for(a=0,b=9;a<b;a++,b--) printf("%c%c",a,b); printf("\n");}

点击查看答案
第9题
阅读下面语句,则程序的执行结果是【 】。 include "stdio.h" main() { int a=-1,b=1,k;

阅读下面语句,则程序的执行结果是【 】。 include "stdio.h" main() { int a=-1,b=1,k; if((a<0)&&! (b--<=0)) printf("%d,%d\n",a,b); else printf("%d,%d\n",b,a);}

点击查看答案
第10题
阅读下面代码: import java.awt.*; public class Exam11_1 { private Frame.
f; private Button bl,b2,b3,b4; public static void main(String args[] { Exam11_1 that = new Exam11_1 (); that.go(); } public void go () { ______; f.setLayout(new FlowLayout());; bl = new Button ("Button 1"); b2 = new Button ("Button 2"); b3 = new Button ("Button 3"); b4 = new Button ("Button 4"); f.add(b1); f.add(b2); f.add(b3); f.add(b4); f.pack(); f.setVisible(true); } } 请在程序中画线处填写正确的语句【 】,以便编译运行程序后得到正确的结果。

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改