c++ difference between reinterpret cast and c style cast
问题 Code: char keyStr[50]={ 0x5F, 0x80 /* bla bla */ }; uint32_t* reCast = reinterpret_cast< uint32_t* >( &keyStr[29] ); uint32_t* reCast2 = ( uint32_t* )&keyStr[29]; if( reCast == reCast2 ){ cout << "Same Thing!"; } Output: Same Thing! I wonder what's the difference between the two casting methods. Also if you could specify ( with examples ) difference between static_cast, dynamic_cast, and other types of casting you know ( i.e. while staying as low level and as close to assembly language as