return an address of a double
Posted
by bks
on Stack Overflow
See other posts from Stack Overflow
or by bks
Published on 2010-04-01T19:13:57Z
Indexed on
2010/04/01
19:23 UTC
Read the original article
Hit count: 276
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
© Stack Overflow or respective owner