Implementation of Queue via Linked List

Will i Please able to get one working implementation of queue data structure containing all the functions via linked list

Hello @S18LP0113,

Following is the required code:

Though you should have tried to implement it yourself.

Hope, this would help.
Give a like if you are satisfied.

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.

1 Like

i have implemented the same in little different manner but its showing error . can you please suggest me something for this.

i have implemented the same in little different manner but its showing error . can you please suggest me something for this. https://ide.codingblocks.com/s/204541

this is the updated resolved code of the above code (its showing seg fault) https://ide.codingblocks.com/s/204556

Hello @S18LP0113,

There many logical mistakes in your code.
I have corrected them all:


Refer to the comments for better understanding.

Hope, this would help.
Give a like if you are satisfied.

1 Like

yaa,all things are working well but what about the destructor…

Hello @S18LP0113,

You have not written any destructor in your code.
So, what are you trying to ask?