hi guys.. wanna ask something..
what're the benefits of using void pointer rather than integer or character pointer?
and in what cases void pointer is preferable to use than intager or character pointer?
thanks.. :)
Every pointer can be converted to a void*. So void* is usually used, when you just need a pointer to some memory, without knowing what is actually behind the pointer.
int* points to an Integer. char* points to a character. Think of void* pointing to "raw memory with unknown type".