i debugged the program in two terminals, providing different input data, but in particular, I saw it in one terminal
ins (ptr=0x0, key=1, upKey=0xbffff308, newnode=0xbffff30c)
and in another terminal
ins (ptr=0x0, key=1, upKey=0xbffff308, newnode=0xbffff30c)
where is the ins function
ins(struct node *ptr, int key, int *upKey,struct node **newnode)
how to assign the same memory location to a pointer. and I run the same program on two different terminals ... with different inputs
source
share