Postorder traversal of Binary search Tree by R4R Team

Post-order traversal:
Post-order traversal of Binary search tree is follow the pattern "LEFT RIGHT ROOT"
-That means, we can firstly evalute left portion and then right portion and at last print root.

Following is the function that are used to traverse the Binary search Tree in Post-order:

void post_traverse(struct node *root)
{
if(root!=NULL)
{
post_traverse(root->leftchild);
post_traverse(root->rightchild);
printf("%d ",root->data);
}
}




Leave a Comment:
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!