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
Explain virtual inheritance?
Which is better struts or spring?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What exactly is polymorphism?
What is an example of genetic polymorphism?
How is polymorphism achieved?
What is the highest level of cohesion?
What is oops?what is its use in software engineering?
What are classes oop?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What is the difference between static polymorphism and dynamic polymorphism?
What is multilevel inheritance explain with example?
What is for loop and its syntax?
What is advantage of inheritance?