结构体内存所占字节数的问题
# include <stdio.h>struct Student
{
char name[20];
int stunumber;
char sex;
};
int main(void)
{
Student msl;
printf("%d\n", sizeof(msl));
return 0;
}
--------------------
结果怎么是28呢?不是应该是25么?
sizeof(c)=1不是么?//c是字符变量。
2015-03-21 19:15

2015-03-21 19:29
2015-03-21 19:47
2015-03-21 20:37
2015-03-21 22:09
2015-03-21 22:16

2015-03-21 22:16
2015-03-21 22:19

2015-03-21 22:57