Name an advantage of array over linked list?

Answer Posted / p.madhupriya

arrays are static in nature, therefore all operations
like memory allocation occur at the time of compilation
only. So processor has to put less effort at its runtime .
linkedlist uses dynamic memory allocation

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

class type to basic type conversion

1839


What is pointer in oop?

539


How many human genes are polymorphic?

575


What is overriding in oops?

606


Why is oop useful?

602






What does enum stand for?

617


Can we create object of abstract class?

577


What is difference between inheritance and polymorphism?

573


What is meant by multiple inheritance?

738


What is and I oop mean?

622


Are polymorphisms mutations?

703


class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash

1699


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

3556


What is abstraction in oops?

589


What causes polymorphism?

577