I have a question. I have a struct with details in it. Then I have a node that contains the details of the struct. My question is, how do I copy the node to a new node with all the details in it?Can I do it like this?
newNode = oldNode;
Or should I make it like this?
newNode -> structName -> detail1 = oldNode -> structName -> detail1;
newNode -> structName -> detail2 = oldNode -> structName -> detail2;
And so on. The details in struct are value type.Is there any other way? Thank you