C program to delete a tree?

Solutions:
 
clear(struct node* pNode)
{
if (pNode != NULL)
{
clear(pNode->left);
clear(pNode->right);
delete pNode;
}
}
 
Top Blogs