设有如下说明
Typedef struct
{int n;char c;double x;}ST;
则以下选项中 ,能正确定义结构体数组并赋初值的语句是______。
A.ST tt[2]={{3,'m',48},{5,'k',66}}; B.ST tt[2]={1,"A",32,2,"",85}; C.struct tt[2]={1,'A',2,'B'}; D.struct tt[2]={{1,"A",62.5},{2,"B",75.0}};正确答案A
设有如下说明
Typedef struct
{int n;char c;double x;}ST;
则以下选项中 ,能正确定义结构体数组并赋初值的语句是______。
A.ST tt[2]={{3,'m',48},{5,'k',66}}; B.ST tt[2]={1,"A",32,2,"",85}; C.struct tt[2]={1,'A',2,'B'}; D.struct tt[2]={{1,"A",62.5},{2,"B",75.0}};正确答案A