討論串[問題] hw1.2.p1b(iv)
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓5(5推 0噓 7→)留言12則,0人參與, 最新作者nianze (念澤)時間11年前 (2013/10/05 12:02), 編輯資訊
1
0
0
內容預覽:
這題我作到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個字)

推噓2(2推 0噓 1→)留言3則,0人參與, 最新作者ric2k1 (Ric)時間11年前 (2013/10/05 16:38), 編輯資訊
1
0
0
內容預覽:
arr1b_3 的型態是 P1a **,所以它的 content 應該是一個 P1a* 指標,. 也就是說每個 arr1b_3[i] 都會指到一個 P1a 的記憶體。. [Note] P1a 的 size 應該是 16 Bytes, 而非 8 Byte,. sizeof(*(arr1b_3[i]))
(還有500個字)

推噓1(1推 0噓 2→)留言3則,0人參與, 最新作者ric2k1 (Ric)時間11年前 (2013/10/05 22:51), 編輯資訊
0
0
0
內容預覽:
哦,P1a 的 size 應該是 platform independent.. "string" 在 32 & 64 bit machine 的 size 分別為 4 & 8 Bytes,. 所以在 32 bit machine 是 8 Bytes 無誤,. 但在 64-bit machine 由於
(還有283個字)
首頁
上一頁
1
下一頁
尾頁