adplus-dvertising
frame-decoration

Question

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

a.

Pi

b.

i

c.

Both pi & i

d.

f

Answer: (c).Both pi & i

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?