Re: [問題] 陣列與字串的疑問
最近在讀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 a variabe,so pa=a and pa++ are legal. But and array name is
not a variable;constructions like a=pa and a++ are illegal.
不知道和原po所要問情況是否有相關?
由於小弟也是新手,不敢妄加定論,上來請教大家,討論看看...
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 203.163.194.3
※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1460558446.A.D0A.html
推
04/15 10:35, , 1F
04/15 10:35, 1F
→
04/15 10:36, , 2F
04/15 10:36, 2F
討論串 (同標題文章)
完整討論串 (本文為第 2 之 2 篇):
10
34
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章