Thread: List

  1. #1
    Registered User
    Join Date
    Sep 2005
    Location
    Cataula, GA
    Posts
    2

    List

    In C, is there an equivilent of BASIC's list function?
    for example, in basic
    Code:
               {1,2,3}->L1 (L1 being list 1)
    means that L1 is a list of three numbers that are 1 2 and 3.
    is there something like this for c?

  2. #2
    Registered User
    Join Date
    Feb 2005
    Posts
    23
    yes...arrays. here's a decent link for learning about pointers and arrays that I found with a quick google search:

    http://pweb.netcom.com/~tjensen/ptr/pointers.htm

  3. #3
    Registered User
    Join Date
    Sep 2005
    Location
    Cataula, GA
    Posts
    2
    Thanks for the help!
    Would say "If there's anything I can do to help you, just ask!" but you know way more than me.

  4. #4
    Nonconformist Narf's Avatar
    Join Date
    Aug 2005
    Posts
    174
    is there something like this for c?
    A list is a generic concept, not a concrete data structure. You can implement a list with all kinds of cool stuff. As already said, an array works, but a linked list is more commonly associated with the "list". It's also harder to create because you have to use a library or build one manually while arrays are a part of the language.
    Just because I don't care doesn't mean I don't understand.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Link List math
    By t014y in forum C Programming
    Replies: 17
    Last Post: 02-20-2009, 06:55 PM
  2. instantiated from here: errors...
    By advocation in forum C++ Programming
    Replies: 5
    Last Post: 03-27-2005, 09:01 AM
  3. How can I traverse a huffman tree
    By carrja99 in forum C++ Programming
    Replies: 3
    Last Post: 04-28-2003, 05:46 PM
  4. List class
    By SilasP in forum C++ Programming
    Replies: 0
    Last Post: 02-10-2002, 05:20 PM
  5. singly linked list
    By clarinetster in forum C Programming
    Replies: 2
    Last Post: 08-26-2001, 10:21 PM