Re: [問題] 陣列與字串的疑問

作者: tony21177   2016-04-13 22:40:43
最近在讀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所要問情況是否有相關?
由於小弟也是新手,不敢妄加定論,上來請教大家,討論看看...
作者: steve1012 (steve)   2016-04-15 10:35:00
就是陣列不直接等於指標 但你可以拿指標去指他知道陣列不直接等於就懂了

Links booklink

Contact Us: admin [ a t ] ucptt.com