[Help] LinkedList

Just starting out? Need help? Post your questions and find answers here.
Thorn
New User
New User
Posts: 6
Joined: Sun Oct 23, 2005 9:35 am
Location: Italy (Tuscany)

[Help] LinkedList

Post by Thorn »

Hi
In what way i can used them?
I don understand where they can be useful...

thanks
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post 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.
Froggerprogger
Enthusiast
Enthusiast
Posts: 423
Joined: Fri Apr 25, 2003 5:22 pm
Contact:

Post 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.
%1>>1+1*1/1-1!1|1&1<<$1=1
Post Reply