1.

        Note:Includes all required header files           using namespace std;struct a {    int p; };struct b {    int* x; };struct c : public a, public b { };int main() {    c* p = new c;    p->x = 0;    cout << "Inherited";    return 0; } 
14.What is the output of this program?

A. Compiler Dependent
B. Base1 Base2 Derived
C. Base2 Base1 Derived
D. Compiler Error
Answer» C. Base2 Base1 Derived


Discussion

No Comment Found

Related MCQs