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 :)
Markdown for AI
A clean, structured version of this page for AI assistants and LLMs.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
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:
Happy Coding :)