討論串[問題] 陣列與字串的疑問
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 1→)留言2則,0人參與, 最新作者tony21177時間10年前 (2016/04/13 22:40), 編輯資訊
0
0
0
內容預覽:
最近在讀K&R第2版,在section 5.3 Pointers and Arrays有提到一段,There is one. difference between an array name and a pointer that must be kept in mind.. A pointer is
(還有134個字)

推噓10(10推 0噓 24→)留言34則,0人參與, 最新作者auto402749 (桓桓)時間10年前 (2016/04/12 22:54), 編輯資訊
0
0
0
內容預覽:
大家好,我是剛學c語言指標的新手. 在書上關於陣列和字串的關係有點疑問. 如果 char str[ ]="Hello";. 那下一行打 str="Goodbye";. 為甚麼會出現編譯錯誤?. 用成指標. char *str="Hello";. 下一行打 str="Goodbye";. 卻能夠編譯.
首頁
上一頁
1
下一頁
尾頁