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 the difference between static polymorphism and dynamic polymorphism?
what are the ways in which a constructors can be called?
write a C++ program for booking using constructor and destructor.
What is overriding vs overloading?
What is polymorphism and example?
write a program to find 2^n+1 ?
is there any choice in opting subjects like 4 out of 7
What does I oop mean?
Write a program to compute for numeric grades for a course. The course records are in a file that will serve as the input file. The input file is in exactly the following format: Each line contains a student's first name, then one space, then ten quiz scores all on one line. The quiz scores are in whole number and are separated by one space. Your program will take it input from this file and sends it output to a second file. The data in the output file will be exactly the same as the data in the input file except that there will be one additional number (of type double) at the end of each line. This number will be the average of the student's ten quiz scores. Use at least one function that has file streams as all or some of its arguments.
What are the three main types of variables?
write a program that takes input in digits and display the result in words from 1 to 1000
Why do we use oops?
What are the 3 pillars of oop?
what are the different types of qualifier in java?
What is object-oriented programming? Webopedia definition