given a pointer
type * ptr;
When or why would you pass the pointer by refrence to a function ie
function(&ptr);
Instead of simply passing the address directly
function(ptr);
I saw this done and don't understand why.
The prototype for the pass by refrence example
was
function(type **ptr);
A pointer to a pointer. I do not understand.



LinkBack URL
About LinkBacks


