In C, is there an equivilent of BASIC's list function?
for example, in basic
means that L1 is a list of three numbers that are 1 2 and 3.Code:{1,2,3}->L1 (L1 being list 1)
is there something like this for c?
In C, is there an equivilent of BASIC's list function?
for example, in basic
means that L1 is a list of three numbers that are 1 2 and 3.Code:{1,2,3}->L1 (L1 being list 1)
is there something like this for c?
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
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.
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.is there something like this for c?
Just because I don't care doesn't mean I don't understand.