Page 1 of 1
[Help] LinkedList
Posted: Sat Nov 12, 2005 1:46 pm
by Thorn
Hi
In what way i can used them?
I don understand where they can be useful...
thanks
Posted: Sat Nov 12, 2005 2:17 pm
by Trond
Let's say you have customer database. You could store the customers in a linked list. This allows to have a large maximum of customers without having to declare a large array that will take up memory.
Posted: Sat Nov 12, 2005 11:03 pm
by Froggerprogger
The main difference between lists and arrays is, that for an array you have to specify a maximum number of entries and memory is reserved for this maximum amount, for lists you don't need to specify the number of items, and memory is allocated only for the current amount of elements inside the list.
So lists are often more convenient, while arrays have a faster access.