Void pointer is a special type of pointer that can point to any data type. A void pointer is declared like a normal pointer, using the void keyword as the pointer’s type.
Example
int a = 5;
void *pVoid = &a; // pVoid is now pointing to an integer
Few things to remember -
1. A void pointer can not be dereferenced, a void pointer must first be explicitly cast to another pointer type before it is dereferenced.
2. It is not possible to do pointer arithmetic on a void pointer.
As a good programming practice avoid void pointer as much as possible.