Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
TCS NQT Technical and Managerial Round Interview Questions

Program Discussion :: Trees

Home > Programs > Trees

2 / 17

Write a program to delete the given element in the tree


struct btnode
    int value;
    struct btnode *l;
    struct btnode *r;
}*root = NULL, *temp = NULL, *t2, *t1;
 void create();
 void insert();
 void delete();
 int flag = 1;
 void main()
/* To insert a node in the tree */
void insert()
    if (root == NULL) 
        root = temp;

Asked In ::

Post Your Answer Here:


Post Your Reply Here: