www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/08/23/13:45:32

From: "OmniMeta" <meta AT abacom DOT com>
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: <Fvdw3.325$Os5.51835@wagner.videotron.net>
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 ?


- Raw text -


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