char begint[0]不占地址,结构体中
#include
#include
struct _page {
struct _page* next;
char begin[0];
};
int main()
{
cout << sizeof(_page) << endl;
return 0;
}
输出8
char begint[0]不占地址
#include
#include
struct _page {
struct _page* next;
char begin[0];
};
int main()
{
cout << sizeof(_page) << endl;
return 0;
}
输出8
char begint[0]不占地址