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 encapsulation in oop?
What is a class in oop?
What is the advantage of oop over procedural language?
what are the realtime excercises in C++?
What is abstraction in oops?
What are the data types in oop?
write a program that takes input in digits and display the result in words from 1 to 1000
What is class and example?
What does and I oop mean?
What is the problem with multiple inheritance?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
Why do we use oops?
What are the components of marker interface?
How do you explain polymorphism?
What are the features of oop?