+ Reply to Thread
Results 1 to 3 of 3

Thread: What is the best way to use NULL in C++?

  1. #1

    What is the best way to use NULL in C++?

    What is the best way to use NULL in C++?

    I know that there are different ways but which is better?

  2. #2
    In C++, it are used to use NULL, 0 to initialize the pointer.

    In C++0x, there is new way for this.

    Example:

    Code:
    Char *p = nullptr ;
    For more information: http://msdn.microsoft.com/en-us/libr...=vs.80%29.aspx

  3. #3
    nullptr is cool new thing in C++.

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts