1.

Note:Includes all required header filesusing namespace std; class base { int arr[15];}; class b1: public base { }; class b2: public base { }; class derived: public b1, public b2 {}; int main(void){ cout << sizeof(derived); return 0;}17.What will be the output of this program?

A. error: invalid conversion from "Derived*" to "Base*"
B. No Compiler Error
C. error: invalid conversion from "Base*" to "Derived*"
D. Runtime Error
Answer» D. Runtime Error


Discussion

No Comment Found

Related MCQs