Write code to in the form of function to delete a sub-tree of general tree whose parent node is p
void deleteNode(Node *p){ if (root == NULL) { return; } deleteNode(p->left_node); deleteNode(p->right_node); free(p); p = NULL; }
Need a fast expert's response?
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Comments
Leave a comment