boolean tree_compare (tree *roort1, tree *root2)
{
if ((root1 == NULL) && (root2 == NULL))
{
return TRUE;
}
else if (root1 && root2)
{
if(root1->data == root2->data)
{
return (tree_compare(roort1->right, root2->left) && tree_compare(root1->left, roort2->right))
}
else
return FALSE;
}
else
FALSE;
}