1.

What is the output of this program?
#include <iostream>
#include <typeinfo>
using namespace std;
int main ()
{
int * num1;
int num2;
num1 = 0; num2 = 3;
if (typeid(num1) != typeid(num2))
{
cout << typeid(num1).name() << " ";
cout << typeid(num2).name();
}
return 0;
}

A. i iP
B. iP i
C. Pi i
D. All of above
E. None of these
Answer» D. All of above


Discussion

No Comment Found

Related MCQs