void - , .
Accordingly, if you have void *foo, C will not allow you to read *foo, not to mention assigning it some value.
Therefore, the answer to your question is: you cannot find out the value of the pointer void. You must point the void pointer to some other type, and the value at the address pointed to by the new pointer is interpreted according to its type.
source
share