"Nelson" <do*******@hotmail.com> wrote in message
news:6a**************************@posting.google.c om...
Hi,
Can pointers be passed by reference to functions? If so, how to do it?
Yes, like this:
void test_func (int*& i);
'i' as a reference to a pointer to an int.
Or is there any other way to change the pointers in the caller by the
called function?
Yes, you can also pass the pointers address. In that case your function
would look like this:
void test_func (int** i);
hth
--
jb
(replace y with x if you want to reply by e-mail)