Null object: Difference between revisions
Content added Content deleted
(Made the C++11 example a subsection of C++) |
|||
Line 187:
}
</lang>
=={{header|C++11}}==▼
in C++11 there is nullptr of type nullptr_t this represents a pointer to an invalid place, you can use it to test like so▼
▲
<lang cpp>
int *p = nullptr;
|