---
title: "What is dynamic_cast in c  ?"  
description: "What is dynamic_cast in c  ?"  
author: "Madam Walker"  
published: 2013-06-13  
updated: 2013-06-14  
canonical: https://www.mindstick.com/forum/1074/what-is-dynamic_cast-in-c  
category: "visual c++"  
tags: ["visual c++"]  
reading_time: 1 minute  

---

# What is dynamic_cast in c  ?

Hi [Expert](https://www.mindstick.com/articles/13120/an-expert-financial-advice-will-improve-your-finances),\
What is dynamic_cast in [c++](https://www.mindstick.com/blog/745/array-in-c-plus-plus)?\
Thanks in advance.

## Replies

### Reply by AVADHESH PATEL

Hi,\
Dynamic_cast is a casting operator. The dynamic_cast operator performs a run-time cast that verifies the validity of a cast. If at the time dynamic_cast is executed, the cast is invalid,the cast fails.the general form of dynamic cast is :\
**dynamic_cast<target_type>(expr)**


---

Original Source: https://www.mindstick.com/forum/1074/what-is-dynamic_cast-in-c

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
