Passing void pointer by reference
In the following code, I am passing a void pointer by reference assigning a value to it. But the value is not reflected in the main program.
It's printing a garbage value. Please tell me what is the correct way of passing a void pointer by reference and getting a value in it from the function.
void function(void *p)
Thanks in advance! :)