Sail E0 Webinar
Question


What is the output of this program?


1.
#include
2.
#include
3.
using namespace std;
4.
int main ()
5.
{
6.
int * a;
7.
int b;
8.
a = 0; b = 0;
9.
if (typeid(a) != typeid(b))
10.
{
11.
cout
Options:
A .  Pi
B .  i
C .  Both a & b
D .  f
Answer: Option C

In this program, We are finding the typeid of the given variables.
Output:
$ g++ rtti1.cpp
$ a.out
Pii



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers