Question
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
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
Answer: Option A
Was this answer helpful ?
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 ?
Submit Solution