X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: new/malloc and delete/free Date: 11 Mar 2002 16:33:19 GMT Organization: Aachen University of Technology (RWTH) Lines: 10 Message-ID: References: <3C8CD04E DOT 5050105 AT vif DOT com> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 1015864399 6187 137.226.32.75 (11 Mar 2002 16:33:19 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 11 Mar 2002 16:33:19 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Sahab Yazdani wrote: > okay i've been using both c/c++ for a while, but this question just > occured to me now, what exactly is the difference between new and > malloc and delete and free. In a very small nutshell: new/delete is just malloc/free with a shiny C++ coat wrapped around it. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.