Get the concept about
Array is not a pointer, but array can convert to pointer automatically.
* –> value of
& –> address of
–> –> member of
(練習題) 設定絕對地址為
0x67a9
的 32-bit 整數變數的值為 0xaa6
,該如何寫? *(int32_t * const) (0x67a9) = 0xaa6;
array 在編譯時期只能作以下兩件事:
得知 size
Obtain a pointer to element 0
前兩者以外的操作,都透過 pointer
Reference:
0 意見:
張貼留言