#include <iostream>

#pragma pack(push, 1)
struct A
{
    int a;
    char b;
};
#pragma pack(pop)

struct B : public A
{
    int c;
};

int main()
{
    std::cout << "Size of A:  " << sizeof(A) << std::endl;
    std::cout << "Size of B:  " << sizeof(B) << std::endl;
    return 0;
}