From: Ian Miller Newsgroups: comp.os.msdos.djgpp Subject: Re: "delete" and "delete []" operators Date: 09 Jul 1998 18:12:49 +0100 Organization: Defence Evaluation & Research Agency Lines: 21 Message-ID: <873ecbeyni.fsf@hasn.dera.gov.uk> References: NNTP-Posting-Host: 146.80.115.106 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Laurence Withers writes: > If I create an array like this: > > typedef char *cptr; > cptr x; > x = new char[15]; > > Should I then, when I come to free the memory, use: > > delete x; > or > delete [] x; delete [] x; Ian -- Ian Miller, Dorset, UK The views expressed above are those of the writer and do not represent the views, policy, or understanding of any other person or official body.