Null pointer is a special reserved value of a pointer. Formally, each specific pointer type like int * char * double * etc. has its own dedicated null-pointer value.
A pointer is not pointing any address when it has a null pointer value.
null pointer is a value but void pointer is a type of var.
Example:
void *pointer = NULL;
int* p = 0;
Happy Coding :)
Liked By
Write Answer
Null pointer and Void pointer
Join MindStick Community
You have need login or register for voting of answers or question.
Prakash nidhi Verma
13-Jun-2018Null pointer is a special reserved value of a pointer. Formally, each specific pointer type like int * char * double * etc. has its own dedicated null-pointer value. A pointer is not pointing any address when it has a null pointer value.
null pointer is a value but void pointer is a type of var.
Example:
Happy Coding :)