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
what is the drawback of classical methods in oops?
What are functions in oop?
How does polymorphism work?
What is polymorphism in oop example?
What is pure oop?
What is interface? When and where is it used?
What is destructor give example?
What is abstraction oop?
What is use of overloading?
What is class in oop with example?
What are the 4 pillars of oop?
How do you explain polymorphism?
How is polymorphism achieved?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< Why is oop useful?