What's the difference between a linked list and an array?

Answers were Sorted based on User's Feedback



What's the difference between a linked list and an array? ..

Answer / paridhi

An array is simply a collection of variables of similar
datatype while a linklist is a collection of nodes where
each node is a combination of a data value and pointer to
another record.

Is This Answer Correct ?    30 Yes 0 No

What's the difference between a linked list and an array? ..

Answer / shatul

an array allocates continous memory allocation whereas a
linked list does not allocates continous memory,

Is This Answer Correct ?    22 Yes 4 No

What's the difference between a linked list and an array? ..

Answer / div

In an array elments accessing is easy. Accessing time of
1st element and 1000th element is same,but not in linked lists.

Is This Answer Correct ?    14 Yes 1 No

What's the difference between a linked list and an array? ..

Answer / shilpa

array is static ,where we need to intialize the size in
starting , but linkelist is dynamic , we can dynamically
add the any variable in to the list

Is This Answer Correct ?    15 Yes 3 No

What's the difference between a linked list and an array? ..

Answer / valli

Array is statically allocated group. Linked list is
dynamically allocated group.

Is This Answer Correct ?    11 Yes 2 No

What's the difference between a linked list and an array? ..

Answer / santosh

in array we are having limted memory size(by intializing the
array size).but in the linked list we dont want to intialize
the size because it is the list of elements.there will many
tyes of linked list,by our requirements we can use any one
of the linkedlist.

Is This Answer Correct ?    12 Yes 4 No

What's the difference between a linked list and an array? ..

Answer / vikraman85

I accept the answer 2 ,then we can delete the specified
node in the linked list,but the same thing we can't do in
arrays..

Is This Answer Correct ?    10 Yes 3 No

What's the difference between a linked list and an array? ..

Answer / noopur

We can allocate memory DYNAMICALLY in linked list where as
in array static allocation of memory is there. In array
contiguous memory allocation procedure is there where as in
linked list we can allocatememory where we want.

Is This Answer Correct ?    7 Yes 2 No

What's the difference between a linked list and an array? ..

Answer / presto

An array is simply a collection of variables of similar
datatype while a linklist is a collection of nodes where
each node is a combination of a data value and pointer to
another record.

Is This Answer Correct ?    6 Yes 1 No

What's the difference between a linked list and an array? ..

Answer / raja sekhar

In linkedlist,The operations(delete,insert&etc)are eazily
perform.Where as in arrays that is not possible.

Is This Answer Correct ?    4 Yes 1 No

Post New Answer

More C Interview Questions

How to find the digits truncation when assigning the interger variable to the character variables. like int i=500; char x = i : here we have truncation. how to find this. another ex: i =100; char x=i. here we do not have truncation.

1 Answers   HCL,


int main() { int i=-1,j=-1;k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d%d%d%d%d",i,j,k,l,m); }

3 Answers   HCL,


Where are c variables stored in memory?

0 Answers  


How do you access command-line arguments?

1 Answers  


What is the use of volatile?

0 Answers  






Write down the program to sort the array.

4 Answers   Impiger,


Tell us two differences between new () and malloc ()?

0 Answers   Adobe,


What is a memory leak? How to avoid it?

1 Answers  


#define f(x) main() { printf("\n%d",f(2+2)); }

5 Answers  


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures

0 Answers   KPIT,


What is meant by recursion?

0 Answers   ADP,


What are data structures in c and how to use them?

0 Answers  


Categories