---
title: "what is typeid operator in c"  
description: "what is typeid operator in c"  
author: "Lady Bird Johnson"  
published: 2013-06-13  
updated: 2013-06-14  
canonical: https://www.mindstick.com/forum/1073/what-is-typeid-operator-in-c  
category: "visual c++"  
tags: ["visual c++"]  
reading_time: 1 minute  

---

# what is typeid operator in c

Hi [Expert](https://www.mindstick.com/articles/13120/an-expert-financial-advice-will-improve-your-finances),\
what is typeid [operator](https://www.mindstick.com/blog/144/union-intersection-and-except-operator-in-sql-server) in [c++](https://www.mindstick.com/blog/745/array-in-c-plus-plus)\
Thanks!

## Replies

### Reply by 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)**


---

Original Source: https://www.mindstick.com/forum/1073/what-is-typeid-operator-in-c

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
