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

以下程序的输出结果是()struct HAR{int x,y;struct HAR*p;} h[2];main(){h[0].x=1;h[0].y=2; h[1

以下程序的输出结果是() struct HAR { int x,y;struct HAR *p;} h[2]; main() { h[0].x=1;h[0].y=2; h[1].x=3;h[1].y=4; h[0].p=&h[1];h[1].p=h; printf("%d%d\n" h[0].p)->x,(h[1].p)->y); }

A.12

B.23

C.14

D.32

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“以下程序的输出结果是()struct HAR{int x,y…”相关的问题
第1题
有以下程序:struct s{ int x,y; }data[2]={10,100,20,200};main(){ struct s *p=data;printf("%d\n",(p)->x);}程序运行后的输出结果是()。

A.10

B.11

C.20

D.21

点击查看答案
第2题
有以下程序:#include <stdio. h>main (){char a :'a',b; printf("% c," , + + a); printf("%c

有以下程序: #include <stdio. h> main () { char a :'a',b; printf("% c," , + + a); printf("%c \n" ,b =a++); }程序运行后的输出结果是()。

A.b,b

B.b,c

C.a,b

D.a,c

点击查看答案
第3题
有以下程序#include "stdio.h"main(){ struct date {int year,month,day;}today; printf("%d\n",sizeof(struct date));}程序的运行结果是

A.6

B.8

C.12

D.10

点击查看答案
第4题
有以下程序: #include <stdio, h>int a =2;int f(int n){ static int a: 3;intt=0;if(n%2){ stat

有以下程序: #include <stdio, h>int a =2;int f(int n){ static int a: 3; int t=0; if(n%2){ static int a=4;t+ =a++;} else { static int a=5;t+ :a++;} return t + a + +;main (){ int s=a,i; for(i=0;i<3;i++)s + =f(i); prinff("% d \n" ,s); }程序运行后的输出结果是()。

A.26

B.28

C.29

D.24

点击查看答案
第5题
若有如下程序: int s[3] [3]={'a','b','C','d','e','f','g','h','i'},*t; main() {t:(int*)malloc(sizeof(int)); sub(t,s); printf("%c\n",*t); } sub(int*p,int b[][3]) {*p=b[2][1]; } 则程序运行后的输出结果是()。

A.d

B.e

C.h

D.b

点击查看答案
第6题
在python中,运行以下程序,输出的结果是2()
点击查看答案
第7题
以下程序的输出结果是【 】。 main() { int a=177; printf(“%o\n”,A) ; }

以下程序的输出结果是【 】。 main() { int a=177; printf(“%o\n”,A) ; }

点击查看答案
第8题
以下程序的输出结果是()

A.= 1

B.def home

C.global a

D.a = 2

E.home

F.print()

点击查看答案
第9题
在python中,运行以下程序,输出的结果是()

A.4

B.6

C.8

D.10

点击查看答案
第10题
以下程序的输出结果是()。intn=0;while(n++<=2);Console.Write(n);

A.2

B.3

C.4

D.语法错误

点击查看答案
第11题
以下程序的输出结果是()#include<stdio.h>main(){ unsigned short a=65537; int b;printf(&quo

以下程序的输出结果是()

#include<stdio.h>

main()

{ unsigned short a=65537; int b;

printf("%d/n" ,b=a);

}

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