What is the purpose of a null pointer in C++?
A. Represents a pointer to a reserved memory location
B. Represents a pointer to a deleted object
C. Represents a pointer to a null object
D. Represents that the pointer does not point to a valid object
Answer: Option D

Join The Discussion