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
What is ambiguity in inheritance?
What does and I oop and sksksk mean?
Plese get me a perfect C++ program for railway/airway reservation with all details.
Can we override main method?
What is difference between inheritance and polymorphism?
What are different oops concepts?
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’.
What is polymorphism and why is it important?
What is an advantage of polymorphism?
write a C++ program for booking using constructor and destructor.
What is the difference between procedural programming and oops?
What is the difference between a mixin and inheritance?
What is object in oop?
What is abstraction in oop with example?
What are the 5 oop principles?