Name an advantage of linked list over array?

Answer Posted / amandeep singh bhatia

In array we can directly access any element by index number
but in Linked list it is not possible,in linked list if we
want to access any element then we go from starting node.

Is This Answer Correct ?    12 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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.

1460


What is meant by multiple inheritance?

742


What is advantage of inheritance?

692


write a program to find 2 power of a 5digit number with out using big int and exponent ?

1899


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

1944






What are the features of oop?

641


How is class defined?

588


What is overloading and its types?

618


What is difference between class and object with example?

566


what's the basic's in dot net

1742


Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.

703


Can we define a class within the interface?

555


Why is encapsulation used?

579


How can you overcome the diamond problem in inheritance?

772


What is the difference between abstraction and polymorphism?

619