在 32 位机器上,对齐模数为 8,下面代码打印结果为()
#include <iostream> using namespace std; class Base { char data[3]; public: virtual void f() { cout << "Base::f" << endl; } virtual void g() { cout << "Base::g" << endl; } virtual void h() { cout << "Base::h" << endl; } }; int main() { cout << sizeof(Base) << endl; return 0; }