-
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;
}
-
- i iP
- iP i
- Pi i
- All of above
- None of these
Correct Option: C
In this program, We are finding the typeid of the given variables.