Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Re: delete NULL

Reply
Thread Tools

Re: delete NULL

 
 
Paul Richards
Guest
Posts: n/a
 
      08-26-2003
Christopher Benson-Manica wrote:
> Is it legal in standard C++ to delete a NULL (0) pointer?
>


Yep. It'll succeed and simply do nothing.

--
Paul Richards

Sun Microsystems, Advanced Development
New Technology Researcher

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
createImage sometime returns null and sometime returns non-null. vizlab Java 3 10-17-2007 11:21 AM
"stringObj == null" vs "stringObj.equals(null)", for null check?? qazmlp1209@rediffmail.com Java 5 03-29-2006 10:37 PM
difference between null object and null string gokul.b@gmail.com Java 16 10-12-2005 06:43 PM
VB.NET Null to SQL Null (ASP.NET 2.0 GridView) Kivak Wolf ASP .Net 2 06-28-2005 02:01 PM
delete NULL, what about delete[] NULL Mathieu Malaterre C++ 2 08-17-2004 10:02 PM



Advertisments