I have a linked list of families. I delete one of the childs siblings like so.
p->myWife->myChildren=p->myWife->myChildren->mySibling; //makes the sibling the child so the list is not broken when deleting delete p->myWife->myChildren->mySibling; and later i print the child/siblings attributes based upon this
if(p->myWife->myChildren->mySibling!=NULL){ print the childs attributes } Whenever I print though, it prints a weird number for the sibling (im assuming its a memory address) What do I need to do to make that pointer null?