delorie.com/archives/browse.cgi | search |
From: | "Chaos" <chengin AT alpha DOT net DOT pl> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: array_ptr=malloc( 1024 * sizeof(int) ) vs int array[1024] - beginner |
Date: | Mon, 7 Feb 2000 14:39:16 +0100 |
Organization: | Chaos Engine |
Lines: | 29 |
Message-ID: | <87p4ha$t6j$1@portraits.wsisiz.edu.pl> |
References: | <87krv2$sp3$1 AT portraits DOT wsisiz DOT edu DOT pl> <01bf71c4$838196e0$e2247d81 AT default> |
NNTP-Posting-Host: | pa135.warszawa.ppp.tpnet.pl |
X-Trace: | portraits.wsisiz.edu.pl 950015338 29907 212.160.52.135 (8 Feb 2000 13:08:58 GMT) |
X-Complaints-To: | abuse AT news DOT wsisiz DOT edu DOT pl |
NNTP-Posting-Date: | 8 Feb 2000 13:08:58 GMT |
X-Newsreader: | Microsoft Outlook Express 4.72.3110.1 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.1 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
>// IIRC C won't increase the size of your program from this >// (it uses some startup trickery) but C++ will !!! Fortunaltelly I still use only pure C. >char ThisIsGloballyAllocated[1000] > >int main(void) >{ > char ThisIsOnTheStack[1000]; > static char ThisIsAlsoGloballyAllocated[1000] > > > >} > >Hope I got this right, but just in case I'm wrong >read a good book on C/C++ anyway... Thnx, I think I get it now. >Doug Eleveld Take care. -=| Chaos |=- e-mail: chengin AT alpha DOT net DOT pl chengin AT polbox DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |