is there any difference between struct node *lchild;
and struct node* lchild; ?? On Sat, Jan 15, 2011 at 6:42 PM, manoj lalavat <manoj.lala...@gmail.com>wrote: > http://cslibrary.stanford.edu/110/ > > > > On Sat, Jan 15, 2011 at 6:36 PM, Logic King <crazy.logic.k...@gmail.com>wrote: > >> hello all, >> i am a beginner to data structures.I have created a recursive function >> for insertion of a node in BST,but the function is not working >> properly.....plz correct me,probably i am doing something wrong with >> the pointers >> help required :( .....urgent !! >> the function is here--- >> >> void insert(struct node *head,int info) >> { >> struct node *temp=malloc(sizeof(struct node)); >> temp->data=info; >> temp->rchild=NULL; >> temp->lchild=NULL; >> if(head==NULL) >> head=temp; >> else if(info>head->data) >> { >> insert(head->rchild,info); >> } >> else if(info<head->data) >> { >> insert(head->lchild,info); >> } >> } >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to algogeeks@googlegroups.com. >> To unsubscribe from this group, send email to >> algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com> >> . >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> >> > > > -- > -- > Manoj Lalavat > > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.