int func(struct node *ptr)
{
if(ptr==NULL)
return;
printf("%d",ptr->data);
func(ptr->left);
func(ptr->right);
}
The above function computes the :-1.Postorder of BST
2.Inorder of BST
3.Preorder of BST
4.All of the above
Posted Date:-2021-06-24 02:10:39