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 ambiguity in inheritance?

627


What does and I oop and sksksk mean?

661


Plese get me a perfect C++ program for railway/airway reservation with all details.

3433


Can we override main method?

611


What is difference between inheritance and polymorphism?

577






What are different oops concepts?

580


write a code for this. serial_number contained in the header of the file will be read , if this serial number is less than a previous serial number within a successfully processed file, or is the same as another serial number within a successfully processed file, or if the field contains anything other than 7 digits, then the file must error with the reason ‘Invalid SERIAL_NUMBER’.

1786


What is polymorphism and why is it important?

562


What is an advantage of polymorphism?

603


write a C++ program for booking using constructor and destructor.

2056


What is the difference between procedural programming and oops?

561


What is the difference between a mixin and inheritance?

527


What is object in oop?

693


What is abstraction in oop with example?

648


What are the 5 oop principles?

607