Live quiz

cpp - Part 103

Question 1 of 25 Hints left: 3
Q1

What will be the output of the following C++ code? #include <iostream> #include <typeinfo> using namespace std; class Polymorphic {virtual void Member(){}}; int main () { try { Polymorphic * pb = 0; typeid(*pb); } catch (exception& e) { cerr << "exception caught: " << e.what() << endl; } return 0; }

  • A
  • B
  • C
  • D