how to implement a linked list. In the struct it has string field

Discussion in 'C' started by nmh, Sep 18, 2007.

  1. nmh

    nmh New Member

    Joined:
    Sep 18, 2007
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    struct is like this

    struct Node
    {
    char str[];
    struct Node *next;
    }

    then how can we implement Insert function how can we pass a data to it
    Void Insert( )

    can you please help
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,345
    Likes Received:
    382
    Trophy Points:
    83
    Searching the forums will give you solutions to what you are looking for. There are lots of linked list related articles which can help you.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice