我想從unsigned int類型爲unsigned char *的價值,我的邏輯給出錯誤的值轉換爲unsigned char無符號整數*
unsigned int Address = 0x0a5b0644; // this value is getting ss fun parameter
m_Address = (unsigned char*)Address; // this logic wrote in side C++ file
unsigned char * m_Address; // this is declared inside H file
這裏m_Address不流汗值0x0a5b0644
我能得到一些想法做到這一點
_is_它得到什麼樣的價值? – Chowlett
嗯,這可能是['reinterpret_cast <>'](http://en.cppreference.com/w/cpp/language/reinterpret_cast)會有幫助嗎? – JBL
我得到一些垃圾值0xFFFF80 – Sijith