Advertise with us

what is typeid operator in c

Hi Expert,

what is typeid operator in c++

Thanks! 
Last updated:6/14/2013 1:54:00 AM

1 Answers

AVADHESH PATEL
AVADHESH PATEL

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)

Answer