Doubt doubt doubt

why it is not working???

https://ide.codingblocks.com/s/600412 why it is not working???

just add one condition in delete function

    if(root==NULL)
        return NULL;

Modified Code