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 a function in oop?
What is abstraction oop?
Can bst contain duplicates?
What is multilevel inheritance in oop?
How long to learn object oriented programming?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
What are the advantages of polymorphism?
What is polymorphism explain its types?
Why is destructor used?
What is a class in oop?
What are objects in oop?
Describe these concepts: Polymorphism, Inheritance and Abstraction.
Can an interface inherit a class?
What is difference between abstraction and encapsulation?
Can abstract class have normal methods?