Tech Blog
subscribe to my new blog http://beacrazyprogrammer.com/
Labels
Android
C
C++
DataStructures
Java
OS
PLSQL
PUZZLE
SQL
Thursday, 2 August 2012
C function to delete a tree
deleteTree(struct node* pNode)
{
if (pNode != NULL)
{
clear(pNode->left);
clear(pNode->right);
free(pNode);
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment