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


Please Help Members By Posting Answers For Below Questions

What is object in oops?

615


What is the difference between procedural programming and oops?

557


What is a null tree?

632


How is polymorphism achieved?

586


What is the purpose of polymorphism?

681






What are the 4 main oop principles?

685


Why oops is important?

614


What is abstraction in oop with example?

646


Can you name some types of inheritance?

641


What is basic concept of oop?

700


What is difference between pop and oop?

609


What are the benefits of polymorphism?

624


What are the components of marker interface?

602


What is the point of oop?

656


Which is better struts or spring?

622