问题描述:
[单选]
如有以下定义:typedef struct Teacher{ //教师结构体 int Tid; char Tname【20】; char Tsex【4】; int Tage;}T;typedef struct Class{ //班级结构体 int Cid; int Cname【20】; T *C_T; //教师结构体指针成员变量 int num = 0;}C;typedef struct Student{ //学生结构体 int Sid; char Sname【20】; char Ssex【4】; int Sage; C *S_C; //教师结构体指针成员变量 float score;}S;T t1【3】;C c1【3】;S s1【10】,*Sp;Sp=s1;以下能够表示学生3所在班级的教师名称的选项是()。
A.Sp[3].S_C->C_T->Tname
B.(Sp+2)->S_C->C_T->Tname
C.Sp[2]->S_C->C_T->Tname
D.Sp[3].S_C.C_T.Tname
参考答案:查看无
答案解析:无
☆收藏
答案解析:无
☆收藏
上一篇:#include <stdlib.h>main(){char *p,*q;p=(char *)malloc(sizeof(char)*20);q=p;scanf("%s%s", p, q) ;printf("%s%s\n", p, q);}若从键盘输入( ) abc def(回车),则输出结果是()。
下一篇:若定义了以下函数( )void f(……){……*p=(double*)malloc(10*sizeof(double();……}p是该函数的形参,要求通过p把动态分配存储单元的地址传回主调函数,则形参p的正确定义应当是()。
- 我要回答: 网友(216.73.216.220)
- 热门题目: 1.十九届五中全会提出了到二〇三 2.普通单程票的交接数量允许存在 3.乘客持未年审的优待卡乘坐苏州
