void is used with function as well as with pointers. There are two types of functions: one that return something and other that do not return anything. We use void with the functions that do not return anything.
If the type of pointer is not known, then we can use void pointer. Void pointer can point to any type of data.


Sponsored Links