Advertisement
Guest User

Untitled

a guest
Mar 29th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. void show_tree_inorder()
  2. {
  3. if(root != NULL)
  4. {
  5. show_node_inorder(root);
  6. }
  7.  
  8. }
  9.  
  10. void show_node_inorder(students* node)
  11. {
  12. if (node->left != NULL)
  13. {
  14. show_node_inorder(node->left);
  15. }
  16. printf("%i \n", node->id);
  17. if (node->right != NULL)
  18. {
  19. show_node_inorder(node->right);
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement