What is reinterpret_cast in c++? What is the purpose of it ? When the right choice you use it ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

What is reinterpret_cast in c++? What is the purpose of it ? When the right choice you use it ?

24th Feb 2018, 9:43 AM
Wasim Abbasi
Wasim Abbasi - avatar
2 Answers
+ 8
In cases when static_cast doesn't work, but you know what you're doing (?). https://code.sololearn.com/c16Tis0l30Il/?ref=app
24th Feb 2018, 9:55 AM
Hatsy Rei
Hatsy Rei - avatar
24th Feb 2018, 9:46 AM
Kinshuk Vasisht
Kinshuk Vasisht - avatar