DEV Community

adi226
adi226

Posted on

2 1

Answer: Adding element at end of a linked list, in function the pointer value not getting assigned? (using code::blocks)

I am not sure what you mean by h->next = newNode; is not assigning the value.

I can see that you are making a list with {1, 2, 3} as data, and than adding a 4 to the end - and I can also see that your print only…

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

If you found this article helpful, a little ❤️ or a friendly comment would be much appreciated!

Got it