What is the difference between NULL and VOID pointer in Data Structures?
NULL can be value for pointer type variables.
VOID is a type identifier which has no size.
NULL and void are not same.
Example:
void* ptr = NULL;
NULL can be value for pointer type variables.
VOID is a type identifier which has no size.
NULL and void are not same.
Example:
void* ptr = NULL;
Recent Comments