Question:
If I have a void pointer storing the address of an integer, how would I be able to print that integer from the void pointer?
example:
I want to print the 7 using the void pointer, NOT using x anymore. All I can do is get pntr to print the address of x in integer form, but that's the furthest I can get... can anyone else help?Code:
void main()
{
void *pntr;
int x = 7;
pntr= &x;
printf("%i", ????);
}