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

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

2383


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

1999


what is difference between class template and template class?

2414


State what is encapsulation and friend function?

955


What is object in oops?

833


write string class as your own class in java without using any built-in function

2226


What are constructors in oop?

809


What causes polymorphism?

832


What is encapsulation in oop?

799


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1906


Why is there no multiple inheritance?

779


What is inheritance and how many types of inheritance?

832


What is polymorphism what is it for and how is it used?

786


What is a class and object?

805


What is the full form of oops?

928