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 inheritance in simple words?
What is an advantage of polymorphism?
What is oops and its features?
Can private class be inherited?
What is the example of polymorphism?
What is the purpose of enum?
Why is static class not inherited?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
What does no cap mean?
what are the realtime excercises in C++?
What are the types of abstraction?
What is polymorphism and why is it important?
What do you mean by variable?
What is multilevel inheritance in oop?