Name an advantage of array over linked list?

Answers were Sorted based on User's Feedback



Name an advantage of array over linked list? ..

Answer / gurpreet kaur

In arrays memory requirement is less as a refrence is not
required whereas memory for the data as well as for the
pointer is required and hence the overhead.
Arrays allow random access, any element can be accessed
using the subscript whereas linked lists allow sequential
access, accessing of any element requires processing of the
list from the beginning upto the element.

Is This Answer Correct ?    17 Yes 4 No

Name an advantage of array over linked list? ..

Answer / shruthi

1. Arrays have continguous memory allocation which makes it
easy to access elements inbetween.
2. As memory is allocated during compilation makes the
program faster
3. Fixed in size so if we are aware of the exact size of
datas then there can be no memory wastage which is also an
advantage linked list has.
4. Insertion and deletion at the end of the array is easy
but not inbetween.
5. Accessing data is easy a[2] etc

Is This Answer Correct ?    13 Yes 0 No

Name an advantage of array over linked list? ..

Answer / swopna

array uses static memory allocation
linkedlist uses dynamic memory allocation

Is This Answer Correct ?    13 Yes 1 No

Name an advantage of array over linked list? ..

Answer / s.a. babu

an array can be created easily and quickly just by
declaration.

Is This Answer Correct ?    9 Yes 1 No

Name an advantage of array over linked list? ..

Answer / dinesh jalandhar

we can use binary search in case of array , which is not
possible in case of linklist........because in linklist it
is not possible to access the middle element of linklist
directly

Is This Answer Correct ?    8 Yes 1 No

Name an advantage of array over linked list? ..

Answer / upasna

Function of bubble sort can not be performed in link list
which is quite easy to perform in arrays

Is This Answer Correct ?    15 Yes 10 No

Name an advantage of array over linked list? ..

Answer / atul kumar gupta

1-:array is working the concept of sequential.but linked
list is not provid the go directaly access the any alement.
2-:linked list are very complicated comparing the array
becouse the consist the two part which frst part is contain
the item and second is contain address of next node,so that
these are complicated compare then array.

Is This Answer Correct ?    7 Yes 2 No

Name an advantage of array over linked list? ..

Answer / aditi

Arrays are of types one ,2,multi dimensional but link list
have types singleand doubly which further has types
circular,header,circular header link list.

Is This Answer Correct ?    9 Yes 5 No

Name an advantage of array over linked list? ..

Answer / nisha

Addresing is possible in case of arrays where as in linked list sequential address is possible

Is This Answer Correct ?    4 Yes 0 No

Name an advantage of array over linked list? ..

Answer / p.madhupriya

arrays are static in nature, therefore all operations
like memory allocation occur at the time of compilation
only. So processor has to put less effort at its runtime .
linkedlist uses dynamic memory allocation

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More OOPS Interview Questions

what is new operator in c++

1 Answers  


i hav very low percentage in 12th n BSCwhich is around 50.......coz it was just imposed on me 2 b a science graduate,nw m doin MCA n hav aggregate 74% ....what shud i answer if company's HR ask me about dis much low previous percentage??????

3 Answers   Infosys,


There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measure 4 liters of wanter using these 2 jars. How do you do this?

4 Answers  


difference between abstraction and encapsulation with progarammatic eg. hi,just recently i went for an interview .The interviewer asked what is the difference between abstraction and encapsulation with programmatic eg. I gave the answer as encapsulation mean hiding the relevant data which is not useful for the user, eg a electric fan .hiding the information how the electricity is converted into machanical energy. abtraction showing only the relevant data to the user eg electric fan. it look ,its color ,it design etc only relevant data. Then the interviewer asked me, give me some programmic eg .I Said Let assume a web form having control like textbox,button etc. The user can view textbox,button etc this is the eg of abstraction and when the user click on the button how he is redirected is not known by the user is the eg of the encapsulation. Am I Correct .was the answer given by me is perfect .now i am planing to go for an another interview should i give the same answer.IF not please suggest me a better answer.with some good eg Please help

1 Answers  


Why is abstraction used?

0 Answers  






What are the valid types of data that the main () can return in C/C++ language

3 Answers  


What is coupling in oop?

0 Answers  


What is R T T I ?

6 Answers   Ness Technologies,


c++ program to swap the objects of two different classes

0 Answers  


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

0 Answers   Wipro,


what is virtual function?

3 Answers  


What is encapsulation process?

0 Answers  


Categories