Name an advantage of array over linked list?
Answer Posted / fias
Array data structure stored in stack memory, which means we
have allocation done at compile time and there is no complex
memory management required. Performance would be better if
we use array, but size is limited, we need to decide at
compile time.
Where as, linked lists are dynamic memory allocation, it
stored in Heap memory. Very flexible to handle it. But, it
requires memory management as we request more memory or
release memory at run time. Linked lists are best choice if
we don't know the memory requirement at run time.
| Is This Answer Correct ? | 10 Yes | 12 No |
Post New Answer View All Answers
What is the diamond problem in inheritance?
write knight tour problem which is present in datastructure
what is different between oops and c++
What is polymorphism and its types?
What is the main purpose of inheritance law?
explain sub-type and sub class? atleast u have differ it into 4 points?
Which is not an object oriented programming language?
What does and I oop mean?
What is inheritance and how many types of inheritance?
What is solid in oops?
write a C++ program for booking using constructor and destructor.
Please send ford technologies placement paper 2 my mail id
How to call a non virtual function in the derived class by using base class pointer
What does and I oop and sksksk mean?
What is an example of genetic polymorphism?