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) ?
Comes to the same thing right ?
then whts the diff.?
any performance problems.
------------------------------------------
Also is there any performance overhead with overloading operators (say +)
rather than defining an add function ?
Thanks