Re: delete NULL

Discussion in 'C++' started by Paul Richards, Aug 26, 2003.

  1. 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
    Paul Richards, Aug 26, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kivak Wolf
    Replies:
    2
    Views:
    10,064
    Kivak Wolf
    Jun 28, 2005
  2. vizlab
    Replies:
    3
    Views:
    4,196
    Michael Bar-Sinai
    Oct 17, 2007
  3. Replies:
    16
    Views:
    7,317
    Mike Schilling
    Oct 12, 2005
  4. Replies:
    5
    Views:
    26,589
    Mike Schilling
    Mar 29, 2006
  5. Mathieu Malaterre

    delete NULL, what about delete[] NULL

    Mathieu Malaterre, Aug 17, 2004, in forum: C++
    Replies:
    2
    Views:
    3,820
    Mathieu Malaterre
    Aug 17, 2004
Loading...

Share This Page