delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/03/03/01:30:20

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: <baec0bf0.0403022220.3534cf24@posting.google.com>
NNTP-Posting-Host: 212.220.74.129
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
}

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019