Binary Search Tree insertion doesn't work
问题 I am following a book ,Problem Solving & Program Design in C, to learn C. In this book, they gave all necessary parts to build a binary search tree.... But, My implementation didn't work. Here is insertion part; void add_to_t(tree_node_t *oldTreep, // input/output - binary search tree tree_element_t ele) // input - element to add { oldTreep = tree_insert(oldTreep, ele); } tree_node_t * tree_insert(tree_node_t *oldTreep, tree_element_t ele) { if(oldTreep == NULL){ oldTreep = TYPED_ALLOC(tree