void F(node&*root){if(root!=0){F(root->left); F(root->right); root->data=0; delete root;}root=0;} this code
free the binary tree and returns it empty
Set all data items in the binary tree to 0
remove all items in the binary tree without changing its size
all of them
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here