pointer/ref question
From: Vicki (wft2vicki_at_earthlink.net)
Date: 02/25/04
- Next message: Richard Heathfield: "Re: qsort (lib function)"
- Previous message: Richard Heathfield: "Re: Threaded BST and AVL"
- Next in thread: Sharad Kala: "Re: pointer/ref question"
- Reply: Sharad Kala: "Re: pointer/ref question"
- Reply: James Dennett: "Re: pointer/ref question"
- Reply: Leor Zolman: "Re: pointer/ref question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 24 Feb 2004 22:15:02 -0800
Hi,
Can someone help me with the following code? I don't understand why
the & (reference...is it called specifier?) is needed with the
pointer.
function header:
void insertAfter(List Cell*& p, int k, int x);
I thought that with the pointer, it is already getting passed by
reference, so why the needed & operator. Isn't this like sending the
address twice?
What am I missing?
Vicki
- Next message: Richard Heathfield: "Re: qsort (lib function)"
- Previous message: Richard Heathfield: "Re: Threaded BST and AVL"
- Next in thread: Sharad Kala: "Re: pointer/ref question"
- Reply: Sharad Kala: "Re: pointer/ref question"
- Reply: James Dennett: "Re: pointer/ref question"
- Reply: Leor Zolman: "Re: pointer/ref question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|