DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

adi226
adi226

Posted on

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)

Another day as a dev

Stop by this week's meme thread!