All the numbers are not getting printed

The first 3 numbers are not getting printed https://ide.codingblocks.com/s/69532.
Whats the issue?

Anikash only first number are not printing because the address of head is at 1 so when u are reversing the first 3 number u r not changing the head that’s why it remain on 1 that why 3 and 2 are not printing
hope this help:)

I can understand your point but how to correct it? if I update the head as
head=P;
then my output isn’t coming

@akh.chakraborty11 hey anikash I am updating your code you can check it this.

1 Like

Thank You So much! But can you just explain where was I going wrong earlier?

@akh.chakraborty11 I already comment it check it once with last one

Thank you. I got it.

Hi Anikash,
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.