数组首地址向前移一个字节
struct Score //成绩
{
int Chinese
int math;
};
sturct Student //学生信息
{
byte id;
Score score[12]; //一年12各月的成绩
}student;
因为student.id是byte型,在内存中会空出3个字节再储存student.score
我是举例,实际应用中需要student.id后接着存储student.score的信息
所以是不是可以理解成把student.score数组的地址向前移3个byte?
还有要如何组织代码,谢谢