Cast in C++

My short notes for casting in C++

Static Cast

Checks in compile time that the types of the casing is possible and correct

Reinterpret Cast

Allows casting in different types. Even if the types are not related. But it does not cause disqualifiers

Const Cast

Constantly convert two types of data

Dynamic Cast

Casting on running time.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *