From: "Chaos" Newsgroups: comp.os.msdos.djgpp Subject: array_ptr=malloc( 1024 * sizeof(int) ) vs int array[1024] - beginner Date: Sun, 6 Feb 2000 23:06:50 +0100 Organization: Chaos Engine Lines: 22 Message-ID: <87krv2$sp3$1@portraits.wsisiz.edu.pl> NNTP-Posting-Host: pf100.warszawa.ppp.tpnet.pl X-Trace: portraits.wsisiz.edu.pl 949875490 29475 212.160.57.100 (6 Feb 2000 22:18:10 GMT) X-Complaints-To: abuse AT news DOT wsisiz DOT edu DOT pl NNTP-Posting-Date: 6 Feb 2000 22:18:10 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 Hi there Just like in the subject: what is the main difference between allocating memory by malloc (new) or by creating an array? I'd like to know where is that mem exactly taken from? Will the size of my program increase after the second method corresponding to allocated space? Does anyone of you can advise me where to use one that way and where another one? Thnx for any response. -- Take care. -=| Chaos |=- e-mail: chengin AT alpha DOT net DOT pl chengin AT polbox DOT com