1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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,292
    Likes Received:
    365
    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