首页 > 职业资格考试> 企业法律顾问
题目内容 (请给出正确答案)
[主观题]

以下程序的计算结果是()。class Test { public static void main(String[] args){int d=5;intc

以下程序的计算结果是()。class Test { public static void main(String[] args){int d=5;intc

以下程序的计算结果是()。

class Test { public static void main(String[] args){int d=5;int

c=2;float x=d/c;System.out.println("x="+x);} }

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“以下程序的计算结果是()。class Test { publ…”相关的问题
第1题
以下Java程序的运行结果是()。public class Increment{public static void main(String args[]

A. 222

B. 233

C. 223

D. 345

点击查看答案
第2题
给出以下代码,该程序的运行结果是()class Example {public static void main (String args[])

A.-1

B.Exception

C.1

D.0

点击查看答案
第3题
以下程序的输出结果是______。 main() { char st[]:"hello\O\t\\"; printf(&

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

main()

{ char st[]:"hello\O\t\\";

printf("%d,%d\n",strlen(st),sizeof(st));

}

点击查看答案
第4题
以下程序运行后的输出结果是______。 char s[]="\\141\141abc\t"; printf(&quo

以下程序运行后的输出结果是______。

char s[]="\\141\141abc\t";

printf("%d\n",strlen(s));

点击查看答案
第5题
以下程序段的输出结果是______。 char s[]="\\101\101abc\t"; printf("%d

以下程序段的输出结果是______。

char s[]="\\101\101abc\t";

printf("%d\n",strlen(s));

点击查看答案
第6题
以下程序的输出结果是______。 #define MAX(x,y) (x)>(y)?(x):(y) main() { int a=5,b=2,c=3,d=3,t: t

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

#define MAX(x,y) (x)>(y)?(x):(y)

main()

{ int a=5,b=2,c=3,d=3,t:

t=MAX(a+b,c+d)*10;

printf("%d\n",t);

点击查看答案
第7题
以下程序运行后的输出结果是【 】。 main() { int x=10,y=20,t=0; if(x==y)t=x;x=Y;

以下程序运行后的输出结果是【 】。 main() { int x=10,y=20,t=0; if(x==y)t=x;x=Y;Y=t; printf(“%d,%d\n”,x,y); }

点击查看答案
第8题
以下程序运行后的输出结果是______。 void swap(int x,int y) { int t; t=x

以下程序运行后的输出结果是______。 void swap(int x,int y) { int t; t=x;x=y;y=t;printf("%d %d ",x,y); } main() { int a=3,b=4; swap(a,b);printf("%d %d\n",a,b); }

点击查看答案
第9题
以下程序运行后的输出结果是______。 main() { int a=3,b=4,c=5,t=99; i[(b<a &

以下程序运行后的输出结果是______。 main() { int a=3,b=4,c=5,t=99; i[(b<a && a<C) t=a;a=c;c=t; if(a<c && b<C) t=b;b=a;a=t; printf("%d%d%d\n",a,b,c) ; }

点击查看答案
第10题
以下程序的输出结果是【 】。 include <stdio.h> void swap(int *a, int *b) {

以下程序的输出结果是【 】。 include <stdio.h> void swap(int *a, int *b) { int *t; t=a; a=b; b=t; } main() { int i=3,j=5,*p=&i,*q=&j; swap(p,q); printf("%d %d\n",*p,*q); }

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