Hello, well this suddenly surprised me .. dunno why ... i was trying to solve the binary-tree implementation ... where i noticed using root.left = new node bla bla
My question
insert(Node root,int value)
root.left = new node(null null value)
Etc ...
The function doesnt create a copy of the root ... it will use the passed object right ?
Can one tell me what type of parameters a fnctn creates a copy and which doesnt ?
Ex:
String - fnctn will create a copy of it .. so any changes made inside the fnctn to the string passed a parameter will not affect the original string ...
Thank u :)