Home Forums C Programming Linked Lists

Viewing 1 reply thread
  • Author
    Posts
    • #2083
      shell
      Participant

      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
      Participant

      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…….

Viewing 1 reply thread
  • The forum ‘C Programming’ is closed to new topics and replies.