About 20,300 results
Open links in new tab
  1. nullptr, the pointer literal (since C++11) - cppreference.com

    Aug 12, 2024 · There exist implicit conversions from nullptr to null pointer value of any pointer type and any pointer to member type. Similar conversions exist for any null pointer constant, which includes …

  2. What is the nullptr keyword, and why is it better than NULL?

    The new C++09 nullptr keyword designates an rvalue constant that serves as a universal null pointer literal, replacing the buggy and weakly-typed literal 0 and the infamous NULL macro. nullptr thus …

  3. Understanding nullptr in C++ - GeeksforGeeks

    Apr 5, 2024 · How does nullptr solve the problem? In the above program, if we replace NULL with nullptr, we get the output as "fun (char *)". nullptr is a keyword that can be used at all places where …

  4. nullptr | Microsoft Learn

    Aug 3, 2021 · The nullptr keyword specifies a null pointer constant of type std::nullptr_t, which is convertible to any raw pointer type. Although you can use the keyword nullptr without including any …

  5. What is the `nullptr` Keyword in C++11? Why It’s Better Than `NULL ...

    Jan 16, 2026 · In this blog, we’ll demystify nullptr: we’ll start by examining the problems with NULL, explore how nullptr works under the hood, and explain why it’s now the gold standard for …

  6. nullptr, the pointer literal - cppreference.com

    The keyword nullptr denotes the pointer literal. It is a prvalue of type std::nullptr_t. There exist implicit conversions from nullptr to null pointer value of any pointer type and any pointer to member type. …

  7. nullptr in C++ - Online Tutorials Library

    The nullptr keyword in C++ represents a null pointer value which was earlier represented using NULL or 0. It was introduced in C++11 and is of type std::nullptr_t.

  8. nullptr | C++ Programming Language

    There exist implicit conversions from nullptr to null pointer value of any pointer type and any pointer to member type. Similar conversions exist for any null pointer constant, which includes values of type …

  9. C++ keyword: nullptr (since C++11) - cppreference.net

    Aug 14, 2024 · (since C++11) nullptr. pointer literal. This page was last modified on 14 August 2024, at 02:04.

  10. 12.8 — Null pointers – Learn C++ - LearnCpp.com

    Feb 5, 2025 · Much like the keywords true and false represent Boolean literal values, the nullptr keyword represents a null pointer literal. We can use nullptr to explicitly initialize or assign a pointer a null …