C Program to copy one binary search tree to another
问题 So, here i have come up with Binary search tree prgram, where i am creating 2 binary trees tmp and tmp2, where i am trying to copy whole tmp2 to tmp, the node which is taken as input from user. But i am getting some segmentation fault, also i am not so sure if the logic is right. Here is the whole program, please lemme know where is it going wrong in t_cpy() or please just fix it for me.. #include<stdio.h> #include<stdlib.h> struct node { int data; struct node *rlink; struct node *llink; }