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


Please Help Members By Posting Answers For Below Questions

What is new keyword in oops?

792


#include #include #include #include void select(char *items, int count); int main(void) { char s[255]; printf("Enter a string:"); gets(s); select(s, strlen(s)); printf("The sorted string is: %s.\n", s); getch(); return 0; } void select(char *items, int count) { register int a, b, c; int exchange; char t; for(a = 0; a < count-1; ++a) { exchange = 0; c = a; t = items[ a ]; for(b = a + 1; b < count; ++b) { if(items[ b ] < t) { c = b; t = items[ b ]; exchange = 1; } } if(exchange) { items[ c ] = items[ a ]; items[ a ] = t; } } } design an algorithm for Selection Sort

2322


What are oops methods?

760


Why do we use encapsulation in oops?

755


What is interface in oop?

882


What is persistence in oop?

867


What is the difference between encapsulation and polymorphism?

832


What is an example of genetic polymorphism?

872


Write a c++ program to display pass and fail for three student using static member function

3090


What is debug class?what is trace class? What differences are between them? With examples.

1858


What are the two different types of polymorphism?

898


What is destructor oops?

839


What is use of overloading?

861


How long to learn object oriented programming?

818


Why do we use class?

817