delorie.com/archives/browse.cgi | search |
Date: | Sat, 19 Feb 2000 07:26:45 +0500 (MVT) |
From: | Prashant TR <prashant_tr AT yahoo DOT com> |
X-Sender: | prashant_tr AT midpec DOT com |
To: | night DOT walker AT tiscalinet DOT it |
cc: | DJ Delorie <djgpp AT delorie DOT com> |
Subject: | Re: new vs malloc |
In-Reply-To: | <38AD8622.AE067F97@tiscalinet.it> |
Message-ID: | <Pine.LNX.4.10.10002190707320.1026-100000@midpec.com> |
MIME-Version: | 1.0 |
Reply-To: | djgpp AT delorie DOT com |
Errors-To: | dj-admin AT delorie DOT com |
X-Mailing-List: | djgpp AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
On Fri, 18 Feb 2000 night DOT walker AT tiscalinet DOT it wrote: > Which is the difference between the "new" command and the "malloc" > function? "new" is used in C++ programming. It calls malloc from within. "malloc" is the basic function to allocate memory. And "new" can catch exceptions as well. Try the "set_new_handler" in new.h.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |