Linked Lists

Home Forums C Programming Linked Lists

This topic contains 1 reply, has 2 voices, and was last updated by  Humayan 10 years, 8 months ago.

  • Author
    Posts
  • #2083

    shell
    Member

    Ive been trying to construct a linked list as shown above, for some reason it only adds nodes till like the fourth node and after that stops adding, Ive debugged and see that it gets down to actually creating the node but for some reason it doesnt add to the List , help would be appreciated.

  • #3369

    Humayan
    Member

    The algorithm for building the list from front to back looks correct ( I assume the constructor for List sets the Next pointer to NULL ). I would guess the problem to be in the test:

    since the rest looks ok…….

You must be logged in to reply to this topic.

Share
Tweet
Share
Pin
+1