Name an advantage of array over linked list?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 3 pillars of oop?

615


what's the basic's in dot net

1740


i got a backdoor offer in process global,Bangalore..Can i work with it?

2326


what is the sylabus for priliminaries?

1691


Why do we use polymorphism?

579






what are the different types of qualifier in java?

1842


What are the components of marker interface?

602


Write a c++ program to display pass and fail for three student using static member function

2816


What is data binding in oops?

588


Which method cannot be overridden?

580


to find out the minimum of two integer number of two different classes using friend function

1643


What is the difference between a mixin and inheritance?

522


Which language is not a true object oriented programming language?

643


What is constructor overloading in oop?

607


What is the difference between procedural programming and oops?

557