空结构体多大?

struct student

{

}stu;

sizeof(stu)的值等于1.

编译器为每个结构体类型数据至少预留1个byte

猜你喜欢

转载自blog.csdn.net/SuGuolin/article/details/78315171