討論串[考題] 程式語言兩題
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 8→)留言10則,0人參與, 最新作者Mayinggo (馬贏狗)時間11年前 (2013/06/26 19:06), 編輯資訊
0
0
0
內容預覽:
1.. Three of the following expressions have the same value. Which of the following's value is different from the others?. (A)*&Ptr. (B)&*Ptr. (C)*Ptr.
(還有967個字)

推噓2(2推 0噓 0→)留言2則,0人參與, 最新作者pt7441 (批踢)時間11年前 (2013/06/26 21:16), 編輯資訊
0
0
0
內容預覽:
大概解釋一下 有錯請更正. 假設 int a=5,*ptr; ptr=&a;. 在記憶體是這樣的. ptr a. 位置| 值 位置|值. 1234 5678 5678 5. A) *&ptr 先看內層&ptr 是取ptr位置為1234. 而*可以當作以int解析記憶體為1234的內容取得5678.
(還有122個字)
首頁
上一頁
1
下一頁
尾頁