ابدأ بالتواصل مع الأشخاص وتبادل معارفك المهنية

أنشئ حسابًا أو سجّل الدخول للانضمام إلى مجتمعك المهني.

متابعة

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

user-image
تم إضافة السؤال من قبل Rana Alnajjar , Web developer , Lebcards
تاريخ النشر: 2015/06/03
Rehan Farooq
من قبل 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.

المزيد من الأسئلة المماثلة

هل تحتاج لمساعدة في كتابة سيرة ذاتية تحتوي على الكلمات الدلالية التي يبحث عنها أصحاب العمل؟