Plz correct my code as it is not giving any output

My code URL:-my code URL is :-https://ide.codingblocks.com/s/643103
plz correct the code.

hi @chhabrarishi2001_264ecb7697e8af2a
ur logic was absolutely correct… there was just a small error…
u were just printing the element present at head of linked list and not the whole list…
I have added a printList function to print the whole list…
corrected code–> https://ide.codingblocks.com/s/643482

Hi @chhabrarishi2001_264ecb7697e8af2a
Is it clear now???

Yes sir ,it is clear

1 Like

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.