Write the C code to perform in-order traversal on a binary tree.

bookmark

  1. void in-order(struct treenode *tree)  
  2.     {  
  3.         if(tree != NULL)  
  4.         {  
  5.             in-order(tree→ left);  
  6.             printf("%d",tree→ root);  
  7.             in-order(tree→ right);  
  8.         }  
  9.     }