单项选择题
数据结构里,定义名称为plan结构体,plan结构体有个成员变量叫time类型是字符数组,定义了prior是plan类型的指针变量,如何引用prior的time成员()。
A.prior->time
B.prior.time
C.prior.time[0]
D.prior->time[0]
点击查看答案
相关考题
-
单项选择题
数据结构里,定义名称为plan结构体,定义了名为arr的该类型的数组共5个元素,plan结构体有个成员变量叫time类型是字符数组,则应用该数组第二个元素的time的方式是()。
A.arr[1].plan
B.arr[2].plan
C.arr[1].time
D.arr[2].time -
单项选择题
数据结构里,定义名称为plan结构体,其有5个元素的结构体数组的定义方式是()。
A.struct plan数组名[5];
B.struct plan数组名[10];
C.plan struct数组名[5];
D.plan数组名[5]; -
单项选择题
数据结构里,有名为goods的结构体,定义这种结构体的指针变量正确的是()。
A.struct p;
B.struct goods p;
C.struct goods;
D.goods p;
