Name an advantage of array over linked list?
Answer Posted / 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 |
Post New Answer View All Answers
Can we create object of abstract class?
write a programe to calculate the simple intrest and compund intrest using by function overlading
Why is polymorphism needed?
What are the 4 pillars of oop?
what are the ways in which a constructors can be called?
What are different oops concepts?
Following are the class specifications: class {int a}; class {int b}; Using friend funtion,calculate the max of two objects and display it.
What is the purpose of polymorphism?
What do you mean by Encapsulation?
what type of question are asked in thoughtworks pair programming round ?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?
What do you mean by overloading?
What is balance factor?
write a program to find 2 power of a 5digit number with out using big int and exponent ?
Why is there no multiple inheritance?