移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

单选题

若有以下程序#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);}则程序的输出结果是(  )。

发布日期:2021-05-18

若有以下程序#include #include #include typedef struct st...
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

标签: "暂无标签"

题王网让考试变得更简单

扫码关注题王,更多免费功能准备上线!