Node *copy(mynode *root)
{
Node *temp;
if(root==NULL)return(NULL);
temp = (mynode *) malloc(sizeof(mynode));
temp->value = root->value;
temp->left = copy(root->left);
temp->right = copy(root->right);
return(temp);
}
Saturday, September 12, 2009
Create a copy of a tree
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment