作者tony21177 ()
看板C_and_CPP
标题Re: [问题] 阵列与字串的疑问
时间Wed Apr 13 22:40:43 2016
最近在读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://webptt.com/cn.aspx?n=bbs/C_and_CPP/M.1460558446.A.D0A.html
1F:推 steve1012: 就是阵列不直接等於指标 但你可以拿指标去指他 04/15 10:35
2F:→ steve1012: 知道阵列不直接等於就懂了 04/15 10:36