Thread: linked list data structure

  1. #1
    Registered User
    Join Date
    Nov 2019
    Posts
    54

    linked list data structure

    I'm having trouble to understanding liked list

    Does this picture show the behavior of linked list

    linked list data structure-linked-list-node-jpg

    Head is pointer to structure store data at every function call

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    37,755
    So what is 2003, 2004 and 2184 ?

    Because it all looks like the same isolated node with 3 different values in it.

    There are pretty pictures of linked lists all over the place.
    Linked list - Wikipedia

    Try google image search.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Nov 2019
    Posts
    54
    Quote Originally Posted by Salem View Post
    So what is 2003, 2004 and 2184 ?

    Because it all looks like the same isolated node with 3 different values in it.

    There are pretty pictures of linked lists all over the place.
    Linked list - Wikipedia

    Try google image search.
    I assume, 2003 is address where number would be store and 2004 where the address of next node would be store and 2184 is address of next node that point the address of element and address of next node

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    37,755
    In which case, what you photoshopped isn't a list at all - to answer your initial question.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. linked list of structure
    By johnhuge in forum C Programming
    Replies: 7
    Last Post: 09-19-2011, 10:42 PM
  2. structure and a linked list help
    By mikecool291 in forum C Programming
    Replies: 1
    Last Post: 05-10-2009, 10:39 AM
  3. Replies: 1
    Last Post: 04-02-2009, 06:51 AM
  4. what does a linked list structure look like?
    By MalickT in forum C Programming
    Replies: 9
    Last Post: 05-26-2008, 05:19 PM
  5. Linked list w/ structure
    By 5rjK in forum C Programming
    Replies: 10
    Last Post: 12-12-2006, 06:18 AM

Tags for this Thread