#include &lt;typeinfo&gt;    #include &lt;iostream&gt;    using namespace std;    class A    &#123;        public:        virtual ~A&#40;&#41;;    &#125;;    int main&#40;&#41;     &#123;        A* a = NULL;        try         &#123;            cout &lt;&lt; typeid&#40;*a&#41;.name&#40;&#41; &lt;&lt; endl;         &#125;        catch &#40;bad_typeid&#41;        &#123;            cout &lt;&lt; &quot;Object is NULL&quot; &lt;&lt; endl;        &#125;    &#125;
A. int
B. float
C. double
D. object is NULL
Answer:A
#include &lt;typeinfo&gt;    #include &lt;iostream&gt;    using namespace std;    class A    &#123;        public:        virtual ~A&#40;&#41;;    &#125;;    int main&#40;&#41;     &#123;        A* a = NULL;        try         &#123;            cout &lt;&lt; typeid&#40;*a&#41;.name&#40;&#41; &lt;&lt; endl;         &#125;        catch &#40;bad_typeid&#41;        &#123;            cout &lt;&lt; &quot;Object is NULL&quot; &lt;&lt; endl;        &#125;    &#125;
A. int B. float C. double D. object is NULL
Explanation:In this program, We are using the bad typeid() for a. So it is arising an exception.