题目

若有以下程序#include #include #include typedef struct stu{ char *name,gender; int score;}STU;void f(char *p){ p=(char *)malloc(10); strcpy(p,"Qian");}main(){ STU a={NULL,'m',290},b; a.name=(char *)malloc(10); strcpy(a.name,"Zhao"); b=a; f(b.name); b.gender='f'; b.score=350; printf("%s,%c,%d,", a.name, a.gender, a.score); printf("%s,%c,%d", b.name, b.gender, b.score);}则程序的输出结果是(  )。

A、Qian,m,290,Qian,f,350

B、Zhao,m,290,Qian,f,350

C、Qian,f,350,Qian,t,350

D、Zhao,m,290,Zhao,f,350

答案
查看答案
相关试题

Which two statements about static NAT are true? ()(Choose two.)

A

Static NAT can only be used with destination NAT.

B

Static NAT rules take precedence over overlapping dynamic NAT rules.

C

NAT rules take precedence over overlapping static NAT rules.

D

A reverse mapping is automatically created.

()是由表和视图组成的、存储有关数据库结构信息的一些数据库对象,描述了实际数据是如何组织的。对它们可以像处理其他数据库表或视图一样进行查询,但不能进行任何修改。

A、数据字典

B、数据文件

C、控制文件

D、表空间

图纸管理系统中,统计操作对产品树中的图形信息进行操作。

A、对

B、错

A system was rebooted and is taking a long time toreturn. The administrator has logged into the HMC and sees reference code 0c9. What does this mean?()

A、The system is configuring a device.

B、A system initiated dump has started.

C、The system is varyingon a volume group.

D、The system is running an inbuilt self test.

什么是BA表?有何作用?

最新解答的试题
付款人在进行付款时无()

A.形式审查义务

B.实质审查义务

C.附带审查义务

D.票据外有关事项的审查义务
根据《公司法》的规定,有限责任公司下列人员中,可以提议召开股东会临时会议的是()。
A.总经理B.人数过半数的股东C.监事会主席D.人数为半数的董事
关于股份有限公司中的监事会,下列说法错误的是()

A.监事会负责提议聘请或更换外部审计机构B.监事会主席和副主席由全体监事过半数选举产生C.监事会中的职工代表的比例不得低于三分之一D.监事会应至少每6个月召开一次会议
三北精神的科学内涵
阿里巴巴提供了“企业名称认证”“企业身份认证”不同种类的认证,可以根据自身的