From: DavMac AT iname DOT com (Davin McCall) Newsgroups: comp.os.msdos.djgpp Subject: Re: Dynamic Array - Need HELP Date: Mon, 05 Jul 1999 05:50:50 GMT Organization: Monash Uni Lines: 19 Distribution: world Message-ID: <3780478e.3365651@newsserver.cc.monash.edu.au> References: NNTP-Posting-Host: damcc5.halls.monash.edu.au X-Trace: towncrier.cc.monash.edu.au 931153829 597 130.194.198.138 (5 Jul 1999 05:50:29 GMT) X-Complaints-To: abuse AT monash DOT edu DOT au NNTP-Posting-Date: 5 Jul 1999 05:50:29 GMT X-Newsreader: Forte Free Agent 1.1/32.230 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Size of any pointer is 8 bytes? Surely it is 4 bytes? Davin. On Sun, 4 Jul 1999 22:55:43 -0500, Mark Phillips wrote: [snip] >well, because v is a pointer to a pointer, and the size of any pointer is >8 bytes. don't worry, your memory is allocated fine, it's just that since >it is dynamically allocated, you can't use sizeof() to check how much >memory you allocated. > >mark > __________________________________________________________ *** davmac - sharkin'!! davmac AT iname DOT com *** my programming page: http://yoyo.cc.monash.edu.au/~davmac/