Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

C++ Language/Indirection/TypedNull

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

The traditional NULL macro was really just a int with value 0. This is commonly used as a special value assigned to a pointer variable, having the semantic meaning of "not pointing at anything" (because computers will never try to use their memory at address 0). Modern C++ uses nullptr instead of NULL, because nullptr has a dedicated std::nullptr_t type. Additional information about nullptr