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
What is polymorphism explain?
Which language is pure oop?
What are the important components of cohesion?
How do you explain polymorphism?
How do you answer polymorphism?
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?
explain sub-type and sub class? atleast u have differ it into 4 points?
What does sksksk mean in text slang?
What is a function in oop?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What is static modifier? What is oops with example? What are the 4 pillars of oop? What is this pointer in oop? What is a null tree?