Cannot Dereference a void *
void * pointer cannot be dereferenced. For example, the compiler “knows” that a pointer to
int refers to four bytes of memory on a machine with four-byte integers, but a pointer to
void simply contains a memory address for an unknown data type—the compiler does not know the precise number of bytes to which the pointer refers and the data type. The compiler must know the data type to determine the number of bytes to dereference for a particular pointer—for a pointer to
void, this number of bytes cannot be determined.
Common Programming Error 8.5
Assigning a pointer of one type to a pointer of another (other than ...