Sail E0 Webinar
Question


What is the output of this program?


1.
#include
2.
#include
3.
using namespace std;
4.
class A
5.
{
6.
};
7.
int main()
8.
{
9.
char c; float x;
10.
if (typeid(c) != typeid(x))
11.
cout
Options:
A .  0
B .  Bad operator
C .  10
D .  None of the mentioned
Answer: Option A

Answer:a
Explanation:
We are checking the type id of char and float as they are not equal, We are printing c.
Output:
$ g++ eal.cpp
$ a.out
c
1A



Was this answer helpful ?
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers