Velocity Reviews - Computer Hardware Reviews

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

Thread Tools

Re: delete NULL

Paul Richards
Posts: n/a
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

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?? Java 5 03-29-2006 10:37 PM
difference between null object and null string 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