Is a void pointer same as a null pointer? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Is a void pointer same as a null pointer?

15th Jun 2020, 5:38 AM
Dipesh Das
Dipesh Das - avatar
1 Answer
+ 1
A void pointer has no finite location and a NULL pointer always points to zero. A void pointer can point to any memory location in the entire physical memory space of the processors while NULL pointer will always point to Memory Address of the beginning of the process. Both are very different.
15th Jun 2020, 8:29 AM
Anubhav Mattoo
Anubhav Mattoo - avatar