sponsored links

空结构体

空结构体大小问题,0 or 1!

November 5
空结构体大小问题,0 or  1!
空结构体的大小在不同编译器中,值是不同的. GCC   sizeof()  return   0 G++  sizeof() return  1 GCC permits a C structure to have no members: struct empty { }; The structure will have size zero. In C++, empty structures are part of the language. G++ treats empty structures