Advertisement
Guest User

Untitled

a guest
Oct 20th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.20 KB | None | 0 0
  1. void grow (nodePointer & root)
  2. {
  3.   if (root == NULL)
  4.   {
  5.     root = new Node;
  6.     root->data = 0;
  7.     root->left = root->right = NULL;
  8.     return;
  9.   }
  10.  
  11.   grow(root->left);
  12.   grow(root->right);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement