看板
[ EE_DSnP ]
討論串[問題] hw1.2.p1b(iv)
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
這題我作到print out the contents of arr1b_3[5]時. 發現間隔大小變成16bytes. 如下:. Contents of arr1b_3[5] are:. arr1b_3[0]: 0x80f1050. arr1b_3[1]: 0x80f1060. arr1b_3[2
(還有48個字)
內容預覽:
arr1b_3 的型態是 P1a **,所以它的 content 應該是一個 P1a* 指標,. 也就是說每個 arr1b_3[i] 都會指到一個 P1a 的記憶體。. [Note] P1a 的 size 應該是 16 Bytes, 而非 8 Byte,. sizeof(*(arr1b_3[i]))
(還有500個字)
內容預覽:
哦,P1a 的 size 應該是 platform independent.. "string" 在 32 & 64 bit machine 的 size 分別為 4 & 8 Bytes,. 所以在 32 bit machine 是 8 Bytes 無誤,. 但在 64-bit machine 由於
(還有283個字)
首頁
上一頁
1
下一頁
尾頁