Null pointer is a special reserved value of a pointer. A pointer of any type has such a reserved value. Formally, each specific pointer type (int *, char * etc.) has its own dedicated null-pointer value. Conceptually, when a pointer has that null value it is not pointing anywhere.

Void pointer is a specific pointer type - void * - a pointer that points to some data location in storage, which doesn't have any specific type.

So, once again, null pointer is a value, while void pointer is a type. These concepts are totally different and non-comparable. That essentially means that your question, as stated, is not exactly valid. It is like asking, for example, "What is the difference between a triangle and a car?".

Answer from AnT stands with Russia on Stack Overflow
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ c language โ€บ dangling-void-null-wild-pointers
Dangling, Void , Null and Wild Pointers in C - GeeksforGeeks
January 10, 2025 - A null pointer stores a defined value, but one that is defined by the environment to not be a valid address for any member or object. NULL vs Void Pointer - Null pointer is a value, while void pointer is a type
๐ŸŒ
Quora
quora.com โ€บ What-is-the-difference-between-a-null-pointer-and-a-void-pointer-in-C
What is the difference between a null pointer and a void pointer in C++? - Quora
Answer (1 of 2): The null pointer is basically used in a program to assign the value 0 to a pointer variable of any data type. The void pointer, on the other hand, has no value assigned to it and we use it to store the addresses of other variables ...
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ differentiate-the-null-pointer-with-void-pointer-in-c-language
Differentiate the NULL pointer with Void pointer in C language
The difference between a Null pointer and a Void pointer is that a Null pointer represents a value, while a Void pointer is a type identifier. NULL Pointer A null pointer indicates that it does not point to anything. If a pointer has no assigned addr
๐ŸŒ
STechies
stechies.com โ€บ void-pointers-null-pointers
Void pointers and null pointers
If you are planning to store different types of addresses of variables of different data types, use void. Again, if you want to declare a pointer but do not want to initialize it with any memory address, initialize it with null.
๐ŸŒ
2braces
2braces.com โ€บ c-programming โ€บ c-difference-between-null-pointer-void-pointer
C Null Pointer vs Void Pointer
The following diagram clearly demonstrate that comparing void pointer and null pointer is very much likely to compare apple with van and not apple with windows
๐ŸŒ
Quora
quora.com โ€บ What-is-difference-between-null-pointer-and-void-pointer-in-C
What is difference between null pointer and void pointer in C? - Quora
Answer (1 of 17): See, When a pointer variable is declared and initialized either by a Null value or by 0 explicitly then the pointer variable is said to be null pointer. Actually it is a pointer that points nowhere. It doesn't have an address of any variable , instead pointer is initialized with...
Find elsewhere
๐ŸŒ
Sololearn
sololearn.com โ€บ en โ€บ Discuss โ€บ 1651954 โ€บ void-pointer-vs-null-pointer
Void pointer vs NULL pointer | Sololearn: Learn to code for FREE!
A pointer pointing to null is a null pointer, meaning it doesn't point to anything. A void pointer can point to any address without knowing the type that it is pointing to. A void pointer can point to null in which case the void pointer is a ...
๐ŸŒ
CodeWithHarry
codewithharry.com โ€บ tutorial โ€บ c-null-pointer
NULL Pointer | C Tutorial | CodeWithHarry
The dereferencing behavior of a NULL pointer is very much similar to that of a void pointer. A NULL pointer itself is a kind of a VOID pointer and hence, we have to typecast it into any data type the way we do to a void pointer before dereferencing.
๐ŸŒ
Wikipedia
en.wikipedia.org โ€บ wiki โ€บ Null_pointer
Null pointer - Wikipedia
3 weeks ago - Prior to C23, the preprocessor macro NULL was provided, defined as an implementation-defined null pointer constant in <stdlib.h>, which in C99 can be portably expressed with #define NULL ((void*)0), the integer value 0 converted to the type void* (see pointer to void type).
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ dangling-void-null-and-wild-pointers-in-cplusplus
Dangling, Void, Null and Wild Pointers in C++
Begin Initialize a variable a with integer value and variable b with float value. Declare a void pointer p. (int*)p = type casting of void. p = &b mean void pointer p is now float. (float*)p = type casting of void. Print the value. End. Null pointer is a pointer which points nothing.
๐ŸŒ
Quora
quora.com โ€บ What-is-the-difference-between-a-null-and-a-void-pointer
What is the difference between null pointer and void pointer? - Quora
Answer (1 of 8): A void pointer is a type - just like how โ€œintโ€, โ€œfloatโ€, โ€œchar*โ€ are types. Conceptually, a void pointer is a pointer that can point to any type. This is useful, for example, when you have an API that is expecting some data from the user, but you donโ€™t actually ...
๐ŸŒ
GNU
gnu.org โ€บ software โ€บ c-intro-and-ref โ€บ manual โ€บ html_node โ€บ Void-Pointers.html
Void Pointers (GNU C Language Manual)
With type void *, you can pass the pointer around and test whether it is null. However, dereferencing it gives a void value that canโ€™t be used (see The Void Type).
๐ŸŒ
UrbanPro
urbanpro.com โ€บ c language โ€บ learn c language
What is difference between null pointer and... - UrbanPro
November 26, 2018 - Answer: Null pointer is a value , whereas void pointer is type .when a pointer has null value is not pointing to anywhere. Void* pointer points...
๐ŸŒ
Exforsys
exforsys.com โ€บ tutorials โ€บ c-plus-plus โ€บ c-plus-plus-void-pointer-and-null-pointer.html
C++ Void Pointer and Null Pointer โ€“ IT Training and Consulting โ€“ Exforsys
A Void pointer is a special type of pointer of void and denotes that it can point to any data type. NULL pointers can take any pointer type, but do not point to any valid reference or memory address.
๐ŸŒ
SkillVertex
skillvertex.com โ€บ blog โ€บ dangling-void-null-and-wild-pointers
Dangling, Void , Null and Wild Pointers
May 10, 2024 - A NULL pointer is a specific value, indicating that a pointer doesnโ€™t point to a valid address. A void pointer is a data type that doesnโ€™t specify any particular data type, but itโ€™s used to point to data of any type.
๐ŸŒ
Fresh2Refresh
fresh2refresh.com โ€บ home โ€บ c programming tutorial โ€บ c interview questions โ€บ when can void pointer and null pointer be used in c?
When can void pointer and null pointer be used in C?
July 5, 2018 - Void pointer is a generic pointer that can be used to point another variable of any data type. Null pointer is a pointer which is pointing to nothing.
๐ŸŒ
Javatpoint
javatpoint.com โ€บ pointers-such-as-dangling-void-null-and-wild
Pointers such as Dangling, Void, Null, and Wild - javatpoint
Pointers such as Dangling, Void, Null, and Wild with C++ tutorial for beginners and professionals, if-else, switch, break, continue, object and class, exception, static, structs, inheritance, aggregation etc.
๐ŸŒ
Quora
quora.com โ€บ What-is-the-difference-between-a-void-pointer-and-a-pointer-of-any-other-data-type
What is the difference between a void pointer and a pointer of any other data type? - Quora
Answer (1 of 2): โ€œWhat is the difference between a void pointer and a pointer of any other data type?โ€ There are 2 answers to this question. According to the C standard pointers to different types of objects might work in totally different ways. They can have different size, different encoding ...