+ 1

Is a void pointer same as a null pointer?

15th Jun 2020, 5:38 AM
Dipesh Das
Dipesh Das - avatar
2 ответов
+ 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