Linked list take input

err: segmentation fault

I am trying to make a take input function where the linked list is not reversed
I am doing so by calling insertAtTail instead of insertATHead

link:

@ayu2321 its working fine

I understood what the problem is.
But the deleteKey function is giving segmentation error if the key is at head

@ayu2321 ok share the updated code .