Chetan Sakhardande wrote:

> I have seen a ficuntio defined as :
> 
> int foo(node *&root)
> 
> where node is a class
> 
> and called by foo(root)
> 
> this function is supposed to take a pointer to a refrenece.
> I am confused by yhi,s
> 
> would it not be easier to declare it as 
> 
> int foo(node **root)and call it by foo(&root) ?

Yes.

> Comes to the same thing right ?

Yes.

> then whts the diff.?

None, really.

> any performance problems.

No.

-- 
Glynn Clements <[EMAIL PROTECTED]>

Reply via email to