Queue using linked list

what is wrong in this code it is showing segmentation fault

hello @sheikhhaji18 you have raised the doubt for this question twice .
i have got your doubt i can answer on anyone you can mark the other as resolved.

have you test your code on any input?
in this ide you have not given any input.
please confirm this.

bro i figured out what i did wrong u replied so late ,any way i marked it resovled

it was showing segmentation fault and it was not compiling , during deleting the last node i didnot set head tail of the linked list to NULL that’s why it was showing segementation fault, and was not compiling .,thanks anyway for asking

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.