c, ch programming: passing the whole array
excerpted from : Computer Science : A Structured programming Approach Using C, ch8, by Forouzan and Gilberg
1. In C, the NAME of an array is a primary expression whose value is the ADDRESS of the FIRST element in the array.
2. Since indexed references are simply calculated addresses, all we need to refer to any of the elements in the array is the ADDRESS of the array.
3. Because the NAME of the array is in fact its ADDRESS, passing the array NAME as opposed to a single element, allows the called function to refer to the array back in the calling function.
做份功課時research見到
20%..即係每五大學生就有一個大陸落黎
唔向左走向右走怪得之JUPAS 個分年年高開
而家日日返學好似去深圳
班友又霸向左走向右走晒宿位,搞到而家三年一宿都名存實亡
大陸人可以申請既獎學金數目又遠遠超過本地生
有朋友上左讀 PhD,話八成研究經費都批左比大陸人
佢地又可以留起香港搵工做
我真係好想知呢個咩世界
http://forum2.hkgolden.com/view.aspx?type=CA&message=3372867
----
11 November 2011 香港電台 - 頭條新聞
http://www.youtube.com/watch?v=CIfde96afbU
C for Engineers and Scientists :An Interpretive Approach. Author: Harry H. Cheng
http://iel.ucdavis.edu/cfores/
Keine Kommentare:
Kommentar veröffentlichen