Home / MCQ Bank / Computer
Computer Plus Plus Miscellaneous Difficulty: Medium

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; }

Select the correct option to test your answer:

More Computer Questions

What will be the output of the following Python code? print('ab,12'.isalnum()) What is the time complexity of the following recursive implementation to find the nth fibonacci number? int fibo(int n) { if(n == 1) return 0; else if(n == 2) return 1; return fibo(n - 1) + fibo(n - 2); } int main() { int n = 5; int ans = fibo(n); printf("%d",ans); return 0; } Name the function that breaks a floating-point number into a normalized fraction and an integral power of 2. A generalised software package produced to meet the bugs of a variety of data processing users is known as Which of the following is the main drawback of FIFO page replacement algorithm?