Q625
What will be the output of the following C++ code? #include using namespace std; class Base public: Base() ~Base() protected: private: ; class Derived:public Base public: Derived() Derived() private: protected: ; int main() cout << "The program exceuted" << endl;
A.
The program executed
B.
Error
AnswerC.
Runtime error
D.
program exceuted
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board