NULL Pointer

Special value that indicates that it is not pointing to any valid reference or memory address.

 

Can be assigned using NULL, 0 or nullptr:

Compile & Run:

Assigned using NULL: 0
Assigned using 0: 0
Assigned using nullptr: 0

Leave a Reply