typeid
bad::typeid
... class A{}; class B: public A {}; ... A * a = new B(); std::cout<<typeid(a).name();
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment