What is the output of the following program? Assume sizeof(int) = 4
#include <iostream> using namespace std;
class Base { static int b; }; class Derived : public Base { int d; }; int main() { Derived objD; cout << sizeof(objD) << endl; }
Reveal answer
Fill a bubble to check yourself