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