This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Flash 的指针不能通过一个常数强制转换而得到么?



const uchar data_temp @0xFC00 = '1' ;

uchar  *flash_p;

方式一:

flash_p = (uchar *)  &data_temp ;

读出来的数值是对的,flash_p = 0xFC00  *flash_p = '1';

方式二:

flash_p = (uchar *)0xFC00 ;

读出  flash_p = 0xFC00 ; 但是 *flash_p是错的。

请问是为什么呢?