void preorder(tree t)
{
if(t == NULL)
return;
printf(“%d “, t->val);
preorder(t->left);
preorder(t->right);
}

Advertisements