Home > DeveloperSection > Forums > what is typeid operator in c
Lady Bird Johnson
Lady Bird Johnson

Total Post:20

Points:140
Posted on    June-13-2013 7:56 AM

 Visual C++ Visual C++ 
Ratings:


 1 Reply(s)
 681  View(s)
Rate this:
Hi Expert,

what is typeid operator in c++

Thanks! 


AVADHESH PATEL

Total Post:604

Points:4228
Posted on    June-14-2013 1:54 AM

Hi,

typeid is  used to obtain type of an object. You must include the header <typeinfo> in order to use typeid.

e.g.

typeid(object)

Don't want to miss updates? Please click the below button!

Follow MindStick