I was Trying to implement doubly linked list

can You please tell where i am mistaking bec the printreverse function is running properly

Hello @neeleshr628,

There is a small mistake in your printReverse function:
for each iteration, you are printing tail->data

Solution:
cout<data<<" ";

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

bro u r telling the wrong thing it is guving compiler error and its very logical data is the part of structure how we can access just by typing data

i have resolved it on my own thank you for your concern

No, but, when i did that, it was giving correct answers.

It was:
cout<<temp->data<<" ";

I miss typed it though you can check that i have pointed out the correct mistake in your code.:sweat_smile: