What is the meaning of node* in the ModifyBST function parameters?

Why can’t we just mention it as node ? and also why are we passing sum as &sum, just even if we mention as sum it passes the same value of sum right? Can you please explain these concepts

It’s a concept of pass by reference and parameter. In pass by parameter if we have a variable value 5, then when a call from x state goes to y and updates it’s value to 10, then at the time of backtracking when variable from y state goes to x, it’s value will be 10 only.
But in reference, while coming from y state to x, it values remain 5 only. Check this for better visualisation.
check this for better visualization:
pass-by-reference-vs-pass-by-value-animation .

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.