How to modify a pointer through a parameter
问题 So I want to pass a pointer to a function and have that function modify that pointer from inside that function. How do i do that in general? In here? EDIT: Since the treeNode is a struct of pointers I want to take nodePtr->vendorDataRef inside of the removeLeftMostNode(...) function and somehow get it back to the calling function. I thought I could do this through a parameter of removeLeftMostNode(...) hence removeLeftMostNode(...aVendor* vendorDataRef) i.e. aBst::treeNode * aBst::removeNode