What are void pointers?

A void pointer is a pointer which is having no datatype associated with it. It can hold addresses of any type.
void *ptr;
char *str;
p=str; // no error
str=p; // error because of type mismatch
Posted on by