How can we change the data of a node by following method//
node*temp=root;
(where root is a previously created node)
because temp is just a copy of root
and we know that any change made in the copy does not reflect in the actual data
so how a change made in temp reflects in the root
like changing left or right pointers or so