What is the output of the following code?
a) baseCode:Base Base { public: void fn (int x) {cout << "Base",} }; class derived : public Base { public : void fn (double *pd) {cout << "Derived"}; }; int main() { Derived d; d.fun (10); }
b) derived
c) Compiler error; invalid convert int to double missing derived ::fun(int);
d) linker error