Hi all, this could be a really stupid question here... but here it goes. ;)
I am trying to pass the address of the variable dNum to a function that takes a parameter of type void *. But nothing prints.. Any ideas?
Code:#include <stdio.h>
void output(void *);
int main(void)
{
double dNum;
dNum = 23.2;
output(&dNum);
return 0;
}
void output(void *pData)
{
printf("%f", pData);
}