Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!bywater!arnor!watson!blinn.watson.ibm.com!mittle From: mittle@blinn.watson.ibm.com (Josh Mittleman) Newsgroups: comp.lang.c++ Subject: Re: Beginner's Problem Ref:Deallocation of space Message-ID: <1991Mar20.171024.22386@watson.ibm.com> Date: 20 Mar 91 17:10:24 GMT References: <1719@umvlsi.ecs.umass.edu> Sender: @watson.ibm.com Reply-To: mittle@ibm.com Organization: IBM T. J. Watson Research Lines: 16 > I have created an array > int *pdata = new int[100] ; If what you want to do is to free the entire array, then you should use: delete pdata; Note that delete DOES NOT set the pointer to 0!! If you want to free only part of the array, I don't know if it is possible. Anyone know? =========================================================================== Josh Mittleman (mittle@ibm.com or joshua@paul.rutgers.edu) J2-C28 T.J. Watson Research Center, PO Box 704, Yorktown Heights, NY 10598