X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: huli_ebtyt AT list DOT ru (Andrey) Newsgroups: comp.os.msdos.djgpp Subject: array size inside of a function Date: 2 Mar 2004 22:20:02 -0800 Organization: http://groups.google.com Lines: 14 Message-ID: NNTP-Posting-Host: 212.220.74.129 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1078294802 19252 127.0.0.1 (3 Mar 2004 06:20:02 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Wed, 3 Mar 2004 06:20:02 +0000 (UTC) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com char *array[size]; function(char *array[]) { // array[0] returns string #0, but sizeof(array) returns 4 // Why returns 4? // Is there any way to get size here? } main() { // array[0] returns string #0, sizeof(array) returns size*4 }