Name an advantage of array over linked list?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is polymorphism explain?

693


Which language is pure oop?

551


What are the important components of cohesion?

557


How do you explain polymorphism?

593


How do you answer polymorphism?

577






IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

1582


explain sub-type and sub class? atleast u have differ it into 4 points?

1837


What does sksksk mean in text slang?

1537


What is a function in oop?

633


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1417


What is static modifier?

634


What is oops with example?

566


What are the 4 pillars of oop?

673


What is this pointer in oop?

557


What is a null tree?

632