Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Useful links for linked lists in c

  1. May 9, 2012 #1
    i need useful links for linked lists in c!thanks
  2. jcsd
  3. May 9, 2012 #2
  4. May 10, 2012 #3
    well most of them they have limited information for them...i'm trying to find something more detailed..i want to compare the list's node and i'm little confused!
  5. May 10, 2012 #4
    OK, post up your relevant code and maybe we can help you. You will find that each implementation is different, so if you are looking for something specific to the way you are doing it, you might not find it.

    You should iterate through your list by following pointers to from one node to the next - do you understand how to do this?

    Each node will contain a data element. Can you access this data element? I assume you have a struct representing your list_node - do you understand the syntax for referencing the variables inside?

    What kind of data do you have? Are you using an appropriate comparison?

    The first link that comes up for "c programming linked list" is a nice tutorial over at cprogramming.com - is this not helpful to you?

  6. May 12, 2012 #5
    thanks for your help!!!
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook