Thursday, 14 July 2011

Preorder Traversal.

void preorder(node *temp)
{
if(temp!=NULL)
{
printf("-> %d ",temp->data);
preorder(temp->left);
preorder(temp->right);
}
}




No comments:

Post a Comment