What is the output of following program?


			  		

Loading

โœช Choose the correct option.

What is the output of following program?

#include
using namespace std;

class Base {};

class Derived: public Base {};

int main()
{
Base *bp = new Derived;
Derived *dp = new Base;
}

A. No Compiler Error
B. Compiler Error in line "Base *bp = new Derived;"
C. Runtime Error
D. Compiler Error in line " Derived *dp = new Base;"