return an address of a double
- by bks
i'm having an issue understanding why the following works:
void doubleAddr(double* source, double** dest)
{
*dest = source;
}
i get a pointer to a double and want to change the double that dest points to:
//usage:
int main()
{
double* num;
double* dest;
doubleAddr(num, &dest);
return 0;
}
thanks in advance