Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void grow (nodePointer & root)
- {
- if (root == NULL)
- {
- root = new Node;
- root->data = 0;
- root->left = root->right = NULL;
- return;
- }
- grow(root->left);
- grow(root->right);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement