单选题:有以下程序#include <stdio.h>#include <string.h>typedef strlIct{ch

  • 题目分类:C语言
  • 题目类型:单选题
  • 号外号外:注册会员即送体验阅读点!
题目内容:

有以下程序
#include <stdio.h>
#include <string.h>
typedef strlIct{char name[9];char sex;float score[2];}STU;
STU f(STU a)
{ STU b={"Zhao",'m',85.0,90.0);int i;
strcpy(a name,b.name);
sex:b.sex;
for(i=0;i<2;i++)a.score[i]=b.score[i];
return a;
}
main()
{STU c="Qian",'f',95.0,92.0},d;
d=f(c).printf("%s,%c,%2.0f,%2.0f",d.Name,d.sex,d.score[0],d.score[1]);
}
程序的运行结果是( )。 A.Qian,f,95,92
B.Qian,m,85,90
C.Zhao,m,85,90
D.Zhao,f,95,92

参考答案:
答案解析:

若有以下程序:int a=1,b=2: a=a^b:b=b^a:则执行以上语句后a和b的值分别是( )。

若有以下程序:int a=1,b=2: a=a^b:b=b^a:则执行以上语句后a和b的值分别是( )。A.a=1,b=2 B.a=3,b=l C.a=

查看答案

软件设计中模块划分应遵循的准则是(  )。

软件设计中模块划分应遵循的准则是(  )。A.低内聚低耦合 B.高内聚低耦合 C.低内聚高耦合 D.高内聚高耦合

查看答案

下列关于数据库设计的叙述中正确的是(  )。

下列关于数据库设计的叙述中正确的是(  )。A.在需求分析阶段建立数据字典 B.在概念设计阶段建立数据宝典 C.在逻辑设计阶段建立数据字典 D.在物理设计阶段建

查看答案

I wonder_______ we could have a talk after the meeting,

I wonder_______ we could have a talk after the meeting,A.which B.why C.that D.i

查看答案

His hands _______ a little as he took up a pen and began to

His hands _______ a little as he took up a pen and began to write.A.waved B.sho

查看答案