Example & Tutorial understanding programming in easy ways.

What is the difference between the Void and Null Pointer?

-Basically, Null pointers generally do not point to a valid location.

- A pointer is initialized as NULL if we are not aware of its value at the time of declaration. 

-Whereas, Void pointers are general-purpose pointers which do not have any type associated with them and can contain the address of any type of variable. 

-So basically, the type of data that it points to can be anything.

Read More →