Ask Sawal

Discussion Forum
Notification Icon1
Write Answer Icon
Add Question Icon

Deepika Casas




Posted Questions



Wait...

Posted Answers



Answer


To get the datatype of variable, use typeid(x).name() of typeinfo library. It returns the type name of the variable as a string.

The syntax to get the type name of a variable x using typeid() is

In the following example, we take a variable x of type double, and print the type name of this variable programmatically using typeid() function.

C++ Program

Output

d stands for double.

Now, let us take a variable of user-defined class type, say Abc, and print the type of this variable programmatically.

C++ Program

Output


Answer is posted for the following question.

Which type of cpp?

Answer


Gewürzhaus Spice House - Canberra Centre

Address: Shop DF19 Canberra Centre, Bunda St, Canberra ACT 2601, Australia


Answer is posted for the following question.

Where would I locate best place to buy house in Canberra, Australia?

Answer


Craft Beer & Microbreweries in Dayton · 16 Lots Brewing Company · Alematic Artisan Ales · Belmont Party Supply · Branch & Bone Artisan Ales · Brew Nation · Carillon


Answer is posted for the following question.

What is the best breweries in dayton oh?


Wait...