delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/08/17/10:45:22.2

From: "Rafał Maj" <r_maj AT poczta DOT onet DOT pl>
Newsgroups: comp.os.msdos.djgpp
Subject: delete OR delete[] ?
Date: Thu, 17 Aug 2000 16:29:12 +0200
Organization: Academic Computer Center CYFRONET AGH
Lines: 7
Message-ID: <8ngta8$27b$2@info.cyf-kr.edu.pl>
NNTP-Posting-Host: d-94-53-08.cyfronet.krakow.pl
X-Trace: info.cyf-kr.edu.pl 966523016 2283 149.156.1.168 (17 Aug 2000 14:36:56 GMT)
X-Complaints-To: news AT cyf-kr DOT edu DOT pl
NNTP-Posting-Date: 17 Aug 2000 14:36:56 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

What is difference between delete and delete[] ?
With one should I use to delete array :  char *ptr = new char[1024] ?
When I'm overloading operator delete for some class, should I overload
operator delete[] too ?



- Raw text -


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