Advertisement

02.28.2004 at 09:24AM PST, ID: 20901259
[x]
Attachment Details

array or linked list?

Asked by dmatter in C Programming Language, Microsoft Visual C++

Tags: linked, lists

Is it better to allocate one large block of memory using malloc or a linked list of structures each individually allocated using malloc?

I imagine that the first is faster but the second has a better chance of working because it can be split up.

Any ideas? Start Free Trial
 
Keywords: array or linked list?
 
Loading Advertisement...
 
[+][-]02.28.2004 at 09:35AM PST, ID: 10476680

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: C Programming Language, Microsoft Visual C++
Tags: linked, lists
Sign Up Now!
Solution Provided By: Kdo
Participating Experts: 3
Solution Grade: A
 
 
[+][-]02.28.2004 at 10:28AM PST, ID: 10476968

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.28.2004 at 10:38AM PST, ID: 10477011

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.28.2004 at 10:46AM PST, ID: 10477053

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.28.2004 at 11:15AM PST, ID: 10477162

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.29.2004 at 08:49PM PST, ID: 10483939

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32