Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

(C++: )What are the ways to store a pointer of one type into a pointer variable for another type?

user-image
Question ajoutée par Rana Alnajjar , Web developer , Lebcards
Date de publication: 2015/06/03
Rehan Farooq
par Rehan Farooq , WEB DEVELOPER/DIGITAL MARKETING EXPERT , Upwork

Direct assignment (if the pointer types are implicitly convertible, such as with derived to base, non-const to const, or any to void), or assignment after a cast.  Depending on the combination of types, any of the four C++ casts (static_cast, const_cast, dynamic_cast, or reinterpret_cast) may be suitable.

More Questions Like This

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?