Name an advantage of linked list over array?
Answer Posted / azhar iqbal
Array is of fix size & contain always same type of data.
Whereas linklist is dynamic in size.And a type of linklist
have capability to store different type of data at its
nodes, and for doing that we use void pointer( a pointer
that can point any type of data )
| Is This Answer Correct ? | 14 Yes | 2 No |
Post New Answer View All Answers
What polymorphism means?
What is the example of polymorphism?
What is oops and its features?
Is data hiding and abstraction same?
What is encapsulation with real life example?
when to use 'mutable' keyword and when to use 'const cast' in c++
What is polymorphism in oops with example?
Can we define a class within the interface?
What is the difference between static polymorphism and dynamic polymorphism?
How does polymorphism work?
What is the types of inheritance?
What is abstraction encapsulation?
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
Why do we use class in oops?
What is encapsulation example?