Name an advantage of array over linked list?

Answers were Sorted based on User's Feedback



Name an advantage of array over linked list? ..

Answer / ved prakash

1=yes

Is This Answer Correct ?    6 Yes 6 No

Name an advantage of array over linked list? ..

Answer / jibran

in arrays direct access is possible where in linked list its not possible because all the time when we access an element we need pointers pointing to the memory location of that element...in short we can say that in linked list we are indirectly accessing the data but in arrays we are directly accessing the data...

Is This Answer Correct ?    1 Yes 1 No

Name an advantage of array over linked list? ..

Answer / 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

Name an advantage of array over linked list? ..

Answer / neha

Inserting and deleting elements is easier in array compared
to linked list.

In array, inserting element just requires incrementing the
next element by 1 and giving its previous index to new
element added. And deleting requires giving the element
which is after the element to b deleted an index one less to it.

But in linked list, link hs to be attached to p->next->next...
etc etc..

Is This Answer Correct ?    8 Yes 13 No

Post New Answer

More OOPS Interview Questions

What is polymorphism in oops?

0 Answers  


How oops is better than procedural?

0 Answers  


should we use linear search or binary search if elements are placed in random order or mixed?in both cases? i need a little bit detail ans?thnks

2 Answers  


What is Dynamic Polymorphism?

13 Answers  


i got a backdoor offer in process global,Bangalore..Can i work with it?

0 Answers  






What are constructors in oop?

0 Answers  


The IT giant Tirnop has recently crossed a head count of 150000 and earnings of $7 billion. As one of the forerunners in the technology front, Tirnop continues to lead the way in products and services in India. At Tirnop, all programmers are equal in every respect. They receive identical salaries and also write code at the same rate. Suppose 14 such programmers take 14 minutes to write 14 lines of code in total. How long will in take 5 programmers to write 5 lines of code in total ?

6 Answers   TCS,


what is oops

4 Answers   NIIT,


Why and when is a virtual destructor needed?

5 Answers  


Why is oop better than procedural?

0 Answers  


What is the benefit of oop?

0 Answers  


how to find no of instances of an object in .NET?

1 Answers   Infosys,


Categories