What's the difference between a linked list and an array?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
Answer / valli
Array is statically allocated group. Linked list is
dynamically allocated group.
Is This Answer Correct ? | 11 Yes | 2 No |
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 |
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 |
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 |
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 |
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 |
to find the closest pair
sir i got 146 correct question & i have also the advantage of height so will they consider my marks as 146+3=149.can any body tell me how they consider my height marks.
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
What is an auto variable in c?
What is Your Name :)
what is the difference between #include<> and #include”…”?
write a program without using main function?
What is the function of ceil(X) defined in math.h do? A)It returns the value rounded down to the next lower integer B)it returns the value rounded up to the next higher integer C)the Next Higher Value D)the next lower value
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
What are header files and what are its uses in C programming?
main() {int i=5; // line 1 i=(++i)/(i++); // line 2 printf("%d",i); // line 3 } output is 2 but if we replace line 2 and line 3 by printf("%d",i=(++i)/(i++)); then output is 1. Why?
what is meant by flushll() in c programming?