首页 > 计算机应用技术> 微机原理及应用
题目内容 (请给出正确答案)
[主观题]

下面程序的输出结果是______。 main() { int x=11,*p=x; *p=23; printf("%d",x); }

下面程序的输出结果是______。

main()

{

int x=11,*p=x;

*p=23;

printf("%d",x);

}

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“下面程序的输出结果是______。 main() { int…”相关的问题
第1题
有以下程序: void f(int*x,iht * y) { int t; t=*x;*x;=*y;*y=t; } ma

有以下程序: void f(int*x,iht * y) { int t; t=*x;*x;=*y;*y=t; } main() { int a[8]={1,2,3,4,5,6,7,8},i,*p,*q; p=a;q=&a[7]; while(p) { f(p,q);p++;q--;} for(i=0;i<8;i++)printf("%d,",a[i]); } 程序运行后的输出结果是【 】。

点击查看答案
第2题
下面程序的输出结果是【 】。 include <stdio.h> main() { staic char b[]="Goodbye";

下面程序的输出结果是【 】。 include <stdio.h> main() { staic char b[]="Goodbye"; char * chp = &b [7]; while(- - chp>=&b[0])putchar (* chp); printf("\n"); }

点击查看答案
第3题
下面程序的运行结果是()。 char a[7]="abcdef"; char b[4]="ABC"; strcpy(a,b); printf("%c",a[5]);

A.输出空格

B.\0

C.e

D.f

点击查看答案
第4题
下面程序的输出结果是。score80ifscore60print成绩为dscore,end,print不及格()

A、成绩为80,不及格

B、成绩为80

C、不及格

D、无输出

点击查看答案
第5题
下面程序的输出结果是()。 def StudentInfo(country='中国',name): print('%s,%s'%(name,country)) StudentInfo('美国','大卫')

A.大卫,美国

B.美国,大卫

C.大卫,中国

D.报错

点击查看答案
第6题
下面程序运行后,输出的结果是______。 For J= 1 To 10 A(J)=2*J B(J)=A(J)*2 Next JPrint B(J/2+0.1) End

点击查看答案
第7题
下面程序段的输出结果是_______。class Base{ int i; Base(){ add(1); } void add(int v){ i+=v; } void print(){ System.out.println(i); } } class Extension extends Base{ Exten

A.9

B.22

C.20

D.18

点击查看答案
第8题
下面程序段的输出结果是_______。public class Test{ public static void main(String args[]){ int n=5,sum=0; while(n>0){ sum+=n; --n; } System.out.println("sum is:"+sum); } }
下面程序段的输出结果是_______。public class Test{ public static void main(String args[]){ int n=5,sum=0; while(n>0){ sum+=n; --n; } System.out.println("sum is:"+sum); } }

A.sum is: 5

B.sum is:15

C.sum is:14

D.sum is:10

点击查看答案
第9题
下面程序段的输出结果是_______。public class Test{ public static void main(String args[]
){ int x,y; x=(int)Math.sqrt(5)/2+(int)Math.random()*5/2; y=(int)Math.sqrt(3)/2+(int)Math.random()*3/2; if(x>y) System.out.println("x>y");

A.编译错误

B.x>y

C.x=y

D.x

点击查看答案
第10题
以下程序的输出结果是______。 include<stdio.h> main() { double a=1234.56789;

以下程序的输出结果是______。 include<stdio.h> main() { double a=1234.56789; printf("%8.4f,%8.2f\n",a,a); }

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