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 oops?what is its use in software engineering?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What is a class and object?
What is abstraction and encapsulation?
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
What is the fundamental idea of oop?
What is encapsulation example?
Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.
How do you explain polymorphism?
Get me a number puzzle game-program
What is encapsulation c#?
What is abstraction in oop?
What is the real life example of polymorphism?
How to use CMutex, CSemaphore in VC++ MFC
How long to learn object oriented programming?