From: "OmniMeta"
Newsgroups: comp.os.msdos.djgpp
Subject: About memory allocation
Lines: 15
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
Message-ID:
Date: Mon, 23 Aug 1999 11:11:46 -0300
NNTP-Posting-Host: 207.253.161.60
X-Complaints-To: abuse AT videotron DOT net
X-Trace: wagner.videotron.net 935421029 207.253.161.60 (Mon, 23 Aug 1999 11:10:29 EDT)
NNTP-Posting-Date: Mon, 23 Aug 1999 11:10:29 EDT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
My question is :
if i do this :
int *p;
int main()
{
p = new int;
return 0;
}
Here I didn't use the delete operator to free p
Did p will be automaticaly deleted with the end of the program, or did p
will stay in memory until i reboot ?