Junior — Senior
Sizes of empty types and their inheritance
livecode
Task condition
What is the output of the program?
void checkEmptyStructs()
{
struct EmptyBase {};
struct EmptyDerived : EmptyBase {};
std::cout << sizeof(EmptyBase) << " " << sizeof(EmptyDerived);
}