设有以下结构类型说明和变量定义,char占1字节,int占2字节,double占8字节,则变量a在内存所占字节数是【1】 struct stud{char num[6];int s[4]; double ave; } a;
查看答案
若以下定义和语句, struct { int day; char mouth; int year;} b; 要引用结构体类型变量成员day可以表示为【1】。
若有如下结构体说明: struct STRU {int a, b;char c; double d;}; 现在定义t数组,要求t数组的每个元素为该结构体类型,请填空:【1】STRU t[20];
struct {int x; char *y;}tab={1,"ab"},*p=tab; 则:表达式p->x的结果为【1】。
设struct student{int no;char name[12];float score[3];};sl,*p = &sl; 用指针法给sl的成员no赋值1234的语句是【1】->no=1234。