Question.6
A derived class adds a member to a base class:
class Base { int a; int b; }; class Derived : public Base { int c; }; printf("%zu", sizeof(Derived));
What is the size of Derived (assuming 4-byte int, no padding)?
Derived
int
Select Answer
4
8
12
16