blob: ad093f3c76ec1da898d6d91f4eace6236929a9ee [file] [log] [blame]
#include <stdio.h>
#include <stdlib.h>
#include "bin-trees.h"
static void
real_inorder (tree_ptr root)
{
if (root == NULL)
return;
real_inorder (root->left);
printf ("%d ", root->data);
real_inorder (root->right);
}
void
in_order_traverse (tree_ptr root)
{
printf ("in-order traversal, with recursion: \n");
real_inorder (root);
printf ("\n");
}