Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are Advanced Type Cast Operators?

advanced Cast operators type
0
Posted

What are Advanced Type Cast Operators?

0

Reinterpret-cast -> used to cast pointer between non-related classes // B*b= reinterpret _cast (a)// Static-cast -> used to cast pointer between related and fundamental data type Dynamic-cast -> used to cast pointer between polymorphism classes (Virtual function containing classes) Here a check on the casting is performed at run-time .If fails returns NULL Cont-cast -> used to set/Remove the constant attribute of the passed object

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123