pgs 140-1 of kandr2 talk about recursion. I tried typing in the code
char by char and couldn't find the bugs so I just read the code and a new
concept to me jumped out. Maybe this is what it means by recursion.
struct tnode *addtree (struct tnode *, char *);
is declared on p 140. But I noticed this on p 141.
struct tnode *addtree (struct tnode *p, char *w);
Can someone explain to me why the parameters are changing here? Would they
need to change more with the program on pages 140-1 ?
Bill
char by char and couldn't find the bugs so I just read the code and a new
concept to me jumped out. Maybe this is what it means by recursion.
struct tnode *addtree (struct tnode *, char *);
is declared on p 140. But I noticed this on p 141.
struct tnode *addtree (struct tnode *p, char *w);
Can someone explain to me why the parameters are changing here? Would they
need to change more with the program on pages 140-1 ?
Bill
Comment